Remove bashisms.

Add support for passing asterisk wildcards to missing-mnemonics.sh.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2928 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2008-09-08 14:27:22 +00:00
parent cc3ea8f437
commit 55a40710ab
3 changed files with 13 additions and 4 deletions

View File

@ -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:

View File

@ -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

View File

@ -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