]> git.pld-linux.org Git - packages/dokuwiki-plugin-cacherevisionseraser.git/blame - dokuwiki-find-lang.sh
- find dokuwiki languages
[packages/dokuwiki-plugin-cacherevisionseraser.git] / dokuwiki-find-lang.sh
CommitLineData
e41c6a4f
ER
1#!/bin/sh
2dir=$RPM_BUILD_ROOT/usr/share/dokuwiki
3langfile=$1
4
5> $langfile
6find $dir -type d -name lang | while read dir; do
7 echo "%dir ${dir#$RPM_BUILD_ROOT}" >> $langfile
8 for dir in $dir/*; do
9 lang=${dir##*/}
10 dir=${dir#$RPM_BUILD_ROOT}
11 case "$lang" in
12 zh-tw)
13 lang=zh_TW
14 ;;
15 pt-br)
16 lang=pt_BR
17 ;;
18 *-*)
19 : Need mapping for $lang!
20 exit 1
21 ;;
22 esac
23 echo "%lang($lang) ${dir#$RPM_BUILD_ROOT}" >> $langfile
24 done
25done
This page took 0.078719 seconds and 4 git commands to generate.