Serialization/Deserialization and a host of other fixes
[controller.git] / opendaylight / md-sal / sal-protocolbuffer-encoding / run.sh
index c9e586ba1a1438e7d0f949b06e4881ec63bc2697..f0907db6648e974298bb399f0956e719cd6e1552 100755 (executable)
@@ -36,3 +36,6 @@ echo "Done generating Java source files."
 
 #to remove trailing spaces in the code files
 find src/main/java -type f -name '*.java' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
+
+#to remove trailing spaces in the generated code on OSX
+find src/main/java -type f -print0 |xargs -0 perl -pi -e 's/ +$//'