Skip to content

Commit

Permalink
Remove bashisms.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
eht16 committed Sep 8, 2008
1 parent cc3ea8f commit 55a4071
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
8 changes: 5 additions & 3 deletions scripts/missing-mnemonics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion scripts/svn-add.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 55a4071

Please sign in to comment.