summaryrefslogtreecommitdiff
path: root/noide
diff options
context:
space:
mode:
Diffstat (limited to 'noide')
-rwxr-xr-xnoide9
1 files changed, 3 insertions, 6 deletions
diff --git a/noide b/noide
index 80bdd32..11dfd4e 100755
--- a/noide
+++ b/noide
@@ -41,11 +41,7 @@ update_copyright()
s="\/\*-"
m=" \*"
e=" \*\/"
- elif [ "$ftype" = 'makefile script' ]; then
- s="#-"
- m="#"
- e=""
- elif [ "$ftype" = 'POSIX shell script' ]; then
+ elif [ "$ftype" = 'makefile script' ] || [ "$ftype" = 'POSIX shell script' ]; then
s="#-"
m="#"
e=""
@@ -68,9 +64,10 @@ update_copyright()
rm $tmpfile
}
-while [ $# -gt ]; do
+while [ $# -gt 0 ]; do
case $1 in
--update-copyright)
+ shift
update_copyright $@
;;
esac