From 14bc8a3883663656cd4254567a978002c062992d Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Thu, 24 Jun 2021 21:23:02 +0200 Subject: refactored code for readability and keeping within 80ch limit, updated service source --- do.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'do.sh') 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 -- cgit v1.2.3-71-gd317