Revision: 2928 http://geany.svn.sourceforge.net/geany/?rev=2928&view=rev Author: eht16 Date: 2008-09-08 14:27:22 +0000 (Mon, 08 Sep 2008)
Log Message: ----------- Remove bashisms. Add support for passing asterisk wildcards to missing-mnemonics.sh.
Modified Paths: -------------- trunk/ChangeLog trunk/scripts/missing-mnemonics.sh trunk/scripts/svn-add.sh
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-09-08 14:26:20 UTC (rev 2927) +++ trunk/ChangeLog 2008-09-08 14:27:22 UTC (rev 2928) @@ -1,3 +1,10 @@ +2008-09-08 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * 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 <frank(at)frank(dot)uvena(dot)de>
* doc/geany.1.in:
Modified: trunk/scripts/missing-mnemonics.sh =================================================================== --- trunk/scripts/missing-mnemonics.sh 2008-09-08 14:26:20 UTC (rev 2927) +++ trunk/scripts/missing-mnemonics.sh 2008-09-08 14:27:22 UTC (rev 2928) @@ -3,10 +3,12 @@ # License: GPL V2 or later # Usage: check-mnemonics.sh [file list]
-if [[ $1 == '' ]]; then + +if [ $# -ge 1 ]; then + FILES=$@ +else FILES='src/*.c plugins/*.c' -else - FILES=$1 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
Modified: trunk/scripts/svn-add.sh =================================================================== --- trunk/scripts/svn-add.sh 2008-09-08 14:26:20 UTC (rev 2927) +++ trunk/scripts/svn-add.sh 2008-09-08 14:27:22 UTC (rev 2928) @@ -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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.