mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-07-29 18:01:55 +08:00
15 lines
570 B
Bash
Executable File
15 lines
570 B
Bash
Executable File
#!/bin/bash
|
|
|
|
BASE_DIR="$(cd "$(dirname $0)"; pwd)"
|
|
LUCI_DIR="$BASE_DIR/../../luci"
|
|
|
|
if [ -d "$LUCI_DIR" ]; then
|
|
perl "$LUCI_DIR/build/i18n-scan.pl" . > "$BASE_DIR/../po/templates/homeproxy.pot"
|
|
perl "$LUCI_DIR/build/i18n-update.pl" "$BASE_DIR/../po"
|
|
else
|
|
LUCI_URL="https://raw.githubusercontent.com/openwrt/luci/691574263356689912c5bd31984bb1b96417a847"
|
|
perl <(curl -fs "$LUCI_URL/build/i18n-scan.pl") . > "$BASE_DIR/../po/templates/homeproxy.pot"
|
|
perl <(curl -fs "$LUCI_URL/build/i18n-update.pl") "$BASE_DIR/../po"
|
|
fi
|
|
find "$BASE_DIR/../po" -name '*.po~' -delete;
|