summaryrefslogtreecommitdiffhomepage
path: root/build/i18n-sync.sh
diff options
context:
space:
mode:
authorPaul Donald <newtwen@gmail.com>2024-02-15 00:30:05 +0100
committerPaul Donald <newtwen@gmail.com>2024-02-15 01:26:38 +0100
commitdf2364f240488b8829c1c587559ec694bbfe487b (patch)
treebff6479e7434b68851f9fd2e0e97d80b71d62894 /build/i18n-sync.sh
parent2870aa8d90d434c409b5c5c694a91c11466d853f (diff)
build: invoke ./build/mkbasepot.sh with -b
Signed-off-by: Paul Donald <newtwen@gmail.com>
Diffstat (limited to 'build/i18n-sync.sh')
-rwxr-xr-xbuild/i18n-sync.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/build/i18n-sync.sh b/build/i18n-sync.sh
index 6d36ca4f0d..d8460fc2b8 100755
--- a/build/i18n-sync.sh
+++ b/build/i18n-sync.sh
@@ -1,8 +1,10 @@
#!/bin/sh
print_help() {
- echo "Execute as ./build/i18n-sync.sh" >&2
- echo "Or run as: ./build/i18n-sync.sh [module folder e.g. applications/luci-app-example]" >&2
+ echo "Execute as ./build/i18n-sync.sh [-b]" >&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 ] || {
@@ -15,11 +17,14 @@ case $1 in
print_help
exit 0
;;
+ -b )
+ ./build/mkbasepot.sh
+ shift
+ ;;
esac
[ -n "$1" ] && set -- "${1%/}"
-[ -n "$1" ] || ./build/mkbasepot.sh
# Absent a [folder] parameter, use the current path
find "${1:-.}" -name '*.pot' -and -not -name base.pot | sort | \