From 55a40710aba64722e5fe47ee00a0078c460d3156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Mon, 8 Sep 2008 14:27:22 +0000 Subject: [PATCH] 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 --- ChangeLog | 7 +++++++ scripts/missing-mnemonics.sh | 8 +++++--- scripts/svn-add.sh | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) 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