aboutsummaryrefslogtreecommitdiffstats
path: root/do.sh
diff options
context:
space:
mode:
Diffstat (limited to 'do.sh')
-rw-r--r--do.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/do.sh b/do.sh
index 0faf177..5e0432c 100644
--- a/do.sh
+++ b/do.sh
@@ -43,7 +43,7 @@ elif [ "$1" == "cleansrc" ]; then
if [ ! -z $(echo "$path" | grep '.[hc]$') ]; then
sed -i -e 's/^\s*\/\*.*\*\/\s*$//g' "$path" # remove /* */ style comments
sed -i -e 's/\s*\/\*.*\*\/\s*/ /g' "$path" # remove /* */ style comments
- sed -i -e 's/\/\/.*//g' "$path" # remove // style comments
+ sed -i -e 's/\s*\/\/.*//g' "$path" # remove // style comments
sed -i -e ':a;N;$!ba;s/\n\{3,\}/\n\n/g' "$path" # collapse multiple newlines
sed -i -e 's/fprintf(\s*stderr\s*,\s*/printf(/g' "$path" # replace fprintf stderr
elif [ "$(basename "$path")" == "Makefile" ]; then