Index: trunk/tools/justMessages/update-msgs.sh |
— | — | @@ -2,12 +2,19 @@ |
3 | 3 | FOLDER="../ToolserverI18N/language/messages" |
4 | 4 | JUSTMESSAGES="justMessages" |
5 | 5 | |
| 6 | +if false ^ true; then |
| 7 | + # This is a traditional Bourne shell |
| 8 | + # As it may not support POSIX set -C, we re-exec to bash |
| 9 | + # This is needed for Solaris sh |
| 10 | + exec bash "$0" "$@" |
| 11 | +fi |
| 12 | + |
6 | 13 | if [ ! -z "$1" ]; then |
7 | 14 | FOLDER="$1" |
8 | 15 | fi |
9 | 16 | |
10 | 17 | if which "$JUSTMESSAGES" 2> /dev/null 1>&2; then |
11 | | - : # Solaris sh doesn't lile if ! <command> (!: not found) |
| 18 | + : # Solaris sh doesn't like if ! <command> (!: not found), it expects a ! binary |
12 | 19 | else |
13 | 20 | DIRNAME=`dirname $0` |
14 | 21 | if [ -z "$DIRNAME" ]; then |
— | — | @@ -18,7 +25,7 @@ |
19 | 26 | |
20 | 27 | set -e |
21 | 28 | LOCKFILE="$FOLDER/.svn/lock" |
22 | | -( set -C; printf "" > "$LOCKFILE" ) 2> /dev/null |
| 29 | +( set -C; printf "" > "$LOCKFILE" ) |
23 | 30 | trap 'rm "$LOCKFILE"' EXIT |
24 | 31 | TEMP=`mktemp -d` |
25 | 32 | rsync -a "$FOLDER"/ "$TEMP" |