aboutsummaryrefslogtreecommitdiffstats
path: root/misc/kde3-i18n-he/scripts/Configure
blob: 1bc1d38ab8be3582b2c3991e5bedf09901b99b39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#! /bin/sh
# $FreeBSD$

/bin/rm -f ${PLIST} ${PLIST}.dirs

if [ "${LINGUAS}" ]; then
    set `echo $LINGUAS`
else
if [ "${BATCH}" ]; then
    set \"ca\" \"cs\" \"da\" \"el\" \"eo\" \"es\" \"et\" \"fi\" \"he\" \"hu\" \"is\" \"it\" \"nl\" \"no\" \"no_NY\" \"pl\" \"pt\" \"pt_BR\" \"ro\" \"sk\" \"sl\" \"sr\" \"sv\" \"tr\" \"uk\"
else
    /usr/bin/dialog --title "Select languages" --clear \
        --checklist "\n\
Please select desired languages:" -1 -1 16 \
pt_BR       "Brazil portuguese" OFF \
ca      "Canada" OFF \
zh_TW.Big5  "Chinese" ON \
cs      "Czech" OFF \
da      "Danish" OFF \
nl      "Dutch" OFF \
eo      "Esperanto" OFF \
et      "Estonian" OFF \
fi      "Finnish" ON \
fr      "French" ON \
de      "German" ON \
el      "Greek" OFF \
he      "Hebrew" OFF \
hu      "Hungarian" OFF \
is      "Icelandic" OFF \
it      "Italian" OFF \
ja      "Japanese" ON \
ko      "Korean" ON \
no      "Norwegian (Bokmaal)" OFF \
no_NY       "Norwegian (Nynorsk)" OFF \
pl      "Polish" OFF \
pt      "Portuguese" OFF \
ro      "Romanian" OFF \
ru      "Russian" ON \
sr      "Serbian" OFF \
zh_CN.GB2312    "Simplified Chinese" ON \
sk      "Slovak" OFF \
sl      "Slovenian" OFF \
es      "Spanish" OFF \
sv      "Swedish" OFF \
tr      "Turkish" OFF \
uk      "Ukrainian" OFF \
2> /tmp/chklist.tmp.$$

    retval=$?

    if [ -s /tmp/chklist.tmp.$$ ]; then
        set `cat /tmp/chklist.tmp.$$`
    fi
    rm -f /tmp/chklist.tmp.$$

    case $retval in
        0)  if [ -z "$*" ]; then
                echo "Nothing selected"
            fi
            ;;
        1)  echo "Cancel pressed."
            exit 1
            ;;
    esac
fi
fi

/bin/rm -f ${WRKSRC}/subdirs
#/usr/bin/grep "^[^@].*/en/.*" ${CURDIR}/pkg-plist > ${PLIST}
#/usr/bin/grep "^@.*/en/.*" ${CURDIR}/pkg-plist > ${PLIST}.dirs

while [ "$1" ]; do
    a=`echo -n $1 | /usr/bin/sed -e 's#\"##g'`
    echo $a >> ${WRKSRC}/subdirs
    /usr/bin/grep "^[^@].*/$a/.*" ${CURDIR}/pkg-plist >> ${PLIST}
    /usr/bin/grep "^[^@].*-$a\$" ${CURDIR}/pkg-plist >> ${PLIST}
    /usr/bin/grep "^@.*/$a/.*" ${CURDIR}/pkg-plist >> ${PLIST}.dirs
    shift
done

/bin/cat ${PLIST}.dirs >> ${PLIST}