Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-05-13 13:29:16 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-05-13 13:29:16 +0300
commit5173b9f6172cb695461b00826da935c2b2907c78 (patch)
tree1e39253453f4eef9934f5df5f342ade079fea9ed /scripts
parent0859e9a844cc23ff04b09b4ac3d580da9197d1a1 (diff)
beautify. Add sed for trailing spaces
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/other/beautify.perl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/other/beautify.perl b/scripts/other/beautify.perl
index 130afd56b..c3438ace1 100755
--- a/scripts/other/beautify.perl
+++ b/scripts/other/beautify.perl
@@ -56,6 +56,10 @@ sub Beautify($)
my $cmd = "astyle --style='k&r' -s2 -v $name";
#print STDERR "Executing: $cmd \n";
`$cmd`;
+
+ $cmd = "sed -i 's\/[ \\t]*\$\/\/' \"$name\"";
+ #print STDERR "Executing: $cmd \n";
+ `$cmd`;
}
}
}