[packages/rpm-pld-macros] Add --with-dokuwiki to find lang
glen
glen at pld-linux.org
Tue Sep 27 22:39:41 CEST 2022
commit 9c6566fdaa3f2e80e171b4deff8728be6e0c01c7
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Tue Sep 27 23:31:14 2022 +0300
Add --with-dokuwiki to find lang
find-lang.sh | 13 +++++++++++++
1 file changed, 13 insertions(+)
---
diff --git a/find-lang.sh b/find-lang.sh
index 3e13e14..32852da 100755
--- a/find-lang.sh
+++ b/find-lang.sh
@@ -56,6 +56,7 @@ Additional options:
--with-omf find OMF files
--with-qm find QT .qm files
--with-django find translations in Django project
+ --with-dokuwiki find translations in dokuwiki plugins/templates
--all-name match all package/domain names
--without-mo skip *.mo locale files
-o NAME output will be saved to NAME
@@ -90,6 +91,7 @@ KDE='#'
OMF='#'
QM='#'
DJANGO='#'
+DOKUWIKI=false
MO=''
OUTPUT=$NAME.lang
ALL_NAME='#'
@@ -97,6 +99,11 @@ NO_ALL_NAME=''
APPEND=''
while test $# -gt 0; do
case "$1" in
+ --with-dokuwiki)
+ DOKUWIKI=true
+ echo >&2 "$PROG: Enabling with Dokuwiki"
+ shift
+ ;;
--with-gnome)
GNOME=''
echo >&2 "$PROG: Enabling with GNOME"
@@ -156,6 +163,12 @@ while test $# -gt 0; do
esac
done
+if $DOKUWIKI; then
+ exec /usr/lib/rpm/dokuwiki-find-lang.sh "$TOP_DIR" "$NAME"
+ echo >&2 "$PROG: ERROR: Unable to execute dokuwiki-find-lang"
+ exit 2
+fi
+
echo >&2 "$PROG/$VERSION: find-lang '$NAME' $APPEND> $OUTPUT"
MO_NAME=.$OUTPUT.tmp~
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-pld-macros.git/commitdiff/625fb9ac964f94d7c265fb762b578a1a7c87b26c
More information about the pld-cvs-commit
mailing list