diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-05-13 13:29:16 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-05-13 13:29:16 +0300 |
commit | 5173b9f6172cb695461b00826da935c2b2907c78 (patch) | |
tree | 1e39253453f4eef9934f5df5f342ade079fea9ed /scripts | |
parent | 0859e9a844cc23ff04b09b4ac3d580da9197d1a1 (diff) |
beautify. Add sed for trailing spaces
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/other/beautify.perl | 4 |
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`; } } } |