build: add mkbasepot.sh, convenience script to rebuild base.pot (it sources multiple project parts)
This commit is contained in:
parent
4bbd85fe42
commit
6e59e510dd
1 changed files with 16 additions and 0 deletions
16
build/mkbasepot.sh
Executable file
16
build/mkbasepot.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
[ -d ./build ] || {
|
||||
echo "Please execute as ./build/mkbasepot.sh" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo -n "Updating po/templates/base.pot ... "
|
||||
|
||||
./build/i18n-scan.pl \
|
||||
libs/core/ libs/web/ \
|
||||
modules/admin-core/ modules/admin-full/ \
|
||||
themes/base/ themes/openwrt/ \
|
||||
> po/templates/base.pot
|
||||
|
||||
echo "done"
|
Loading…
Reference in a new issue