From: Jo-Philipp Wich Date: Thu, 13 Jan 2011 21:48:38 +0000 (+0000) Subject: build: add mkbasepot.sh, convenience script to rebuild base.pot (it sources multiple... X-Git-Tag: 0.11.0~2388 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=6e59e510dd3bc5cb0bcdd3fc6293feef105a103e;ds=sidebyside build: add mkbasepot.sh, convenience script to rebuild base.pot (it sources multiple project parts) --- diff --git a/build/mkbasepot.sh b/build/mkbasepot.sh new file mode 100755 index 000000000..48e85cad6 --- /dev/null +++ b/build/mkbasepot.sh @@ -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"