Debian Codegraph @

arduino-core/src/processing/app/i18n/push.sh

raw symbols SCIP
1 #!/bin/bash
2
3 if [ $0 != "./push.sh" ]; then
4 echo "push.sh: Invoke this script as ./push.sh"
5 exit 1
6 fi
7
8 while [ $# -gt 0 ]; do
9 if [ $1 = '-a' ]; then
10 for f in Resources_*.po; do
11 f=$(expr "$f" : "Resources_\(.*\).po")
12 langs="$langs $f"
13 done
14 else
15 langs="$langs $1"
16 fi
17 shift
18 done
19
20 if [ "$langs" = "" ]; then
21 echo "push.sh: Give at least one language code."
22 exit 1
23 fi
24
25 exec python python/push.py $langs