diff options
| author | Louis Burda <quent.burda@gmail.com> | 2021-06-24 21:23:02 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2021-06-24 21:23:02 +0200 |
| commit | 14bc8a3883663656cd4254567a978002c062992d (patch) | |
| tree | 66f2c72f026c0142d9f0e74d272af5ed4b4863bb /do.sh | |
| parent | 5569ec2abd2c8f31554a02587fda842e4da7eba3 (diff) | |
| download | enowars5-service-stldoctor-14bc8a3883663656cd4254567a978002c062992d.tar.gz enowars5-service-stldoctor-14bc8a3883663656cd4254567a978002c062992d.zip | |
refactored code for readability and keeping within 80ch limit, updated service source
Diffstat (limited to 'do.sh')
| -rw-r--r-- | do.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
