diff --git a/ChangeLog b/ChangeLog index 3ced8bef..8816882e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-09-08 Enrico Tröger + + * scripts/missing-mnemonics.sh, scripts/svn-add.sh: + Remove bashisms. + Add support for passing asterisk wildcards to missing-mnemonics.sh. + + 2008-09-07 Frank Lanitz * doc/geany.1.in: diff --git a/scripts/missing-mnemonics.sh b/scripts/missing-mnemonics.sh index cc489cc6..b98f0243 100755 --- a/scripts/missing-mnemonics.sh +++ b/scripts/missing-mnemonics.sh @@ -3,10 +3,12 @@ # License: GPL V2 or later # Usage: check-mnemonics.sh [file list] -if [[ $1 == '' ]]; then - FILES='src/*.c plugins/*.c' + +if [ $# -ge 1 ]; then + FILES=$@ else - FILES=$1 + FILES='src/*.c plugins/*.c' fi + fgrep -n 'menu_item_new' $FILES |egrep -v '".*_[a-zA-Z0-9]' |fgrep -v from_stock |fgrep -v '_("No custom commands defined.")' |fgrep -vi '_("invisible")' |egrep '_\(".+' --color diff --git a/scripts/svn-add.sh b/scripts/svn-add.sh index f475e55e..8503ffd6 100755 --- a/scripts/svn-add.sh +++ b/scripts/svn-add.sh @@ -1,6 +1,6 @@ #!/bin/sh FILE=$1 -if [[ -n $FILE ]]; then +if [ -n $FILE ]; then svn add $FILE svn propset svn:keywords 'Author Date Id Revision' $FILE svn propset svn:eol-style native $FILE