]> git.pld-linux.org Git - packages/rpm-pld-macros.git/commitdiff
Add --with-dokuwiki to find lang
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 27 Sep 2022 20:31:14 +0000 (23:31 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 27 Sep 2022 20:39:18 +0000 (23:39 +0300)
find-lang.sh

index 3e13e14f0d1b69bef89cbe81c90c3ed56c7eb3b3..32852da683431a6ad548c17668d13905012dcf6b 100755 (executable)
@@ -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~
This page took 0.603089 seconds and 4 git commands to generate.