Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 55a40710aba64722e5fe47ee00a0078c460d3156 1 parent cc3ea8f
@eht16 eht16 authored
Showing with 13 additions and 4 deletions.
  1. +7 −0 ChangeLog
  2. +5 −3 scripts/missing-mnemonics.sh
  3. +1 −1  scripts/svn-add.sh
View
7 ChangeLog
@@ -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
8 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
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.