build: invoke ./build/mkbasepot.sh with -b
Signed-off-by: Paul Donald <newtwen@gmail.com>
This commit is contained in:
parent
2870aa8d90
commit
df2364f240
1 changed files with 8 additions and 3 deletions
|
@ -1,8 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
print_help() {
|
print_help() {
|
||||||
echo "Execute as ./build/i18n-sync.sh" >&2
|
echo "Execute as ./build/i18n-sync.sh [-b]" >&2
|
||||||
echo "Or run as: ./build/i18n-sync.sh [module folder e.g. applications/luci-app-example]" >&2
|
echo "Or run as: ./build/i18n-sync.sh [-b] [module folder e.g. applications/luci-app-example]" >&2
|
||||||
|
echo "Options:"
|
||||||
|
echo " -b: Generate the base .pot file ( invokes ./build/mkbasepot.sh )"
|
||||||
}
|
}
|
||||||
|
|
||||||
[ -d ./build ] || {
|
[ -d ./build ] || {
|
||||||
|
@ -15,11 +17,14 @@ case $1 in
|
||||||
print_help
|
print_help
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
-b )
|
||||||
|
./build/mkbasepot.sh
|
||||||
|
shift
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[ -n "$1" ] && set -- "${1%/}"
|
[ -n "$1" ] && set -- "${1%/}"
|
||||||
|
|
||||||
[ -n "$1" ] || ./build/mkbasepot.sh
|
|
||||||
|
|
||||||
# Absent a [folder] parameter, use the current path
|
# Absent a [folder] parameter, use the current path
|
||||||
find "${1:-.}" -name '*.pot' -and -not -name base.pot | sort | \
|
find "${1:-.}" -name '*.pot' -and -not -name base.pot | sort | \
|
||||||
|
|
Loading…
Reference in a new issue