exit 1
}
-./build/mkbasepot.sh
+[ -n "$1" ] || ./build/mkbasepot.sh
-find . -name '*.pot' -and -not -name base.pot | \
+find "${1:-.}" -name '*.pot' -and -not -name base.pot | \
while read path; do
dir="${path%/po/templates/*}"
echo -n "Updating ${path#./} ... "
echo "done"
done
-./build/i18n-update.pl
+if [ -n "$1" ]; then
+ find "$1" -path '*/templates/*.pot' -printf '%h ' | \
+ xargs -r -n 1 dirname | \
+ xargs -r -n 1 ./build/i18n-update.pl
+else
+ ./build/i18n-update.pl
+fi