summaryrefslogblamecommitdiff
path: root/portuguese/kde3-i18n/scripts/Configure
blob: 18451134a7e5e200bade4b5273834324a9806a5e (plain) (tree)
1
2
3
4
5
6
7
8
9




                                 


                           
                       
                                                                                                                                                                                                                            
    


                                                            

                                           


                              
                             
                                 


                                

                             

                                 
                                 
                               

                               


                                 


                                           

                                

                                         

                                 
                               

                               
                                  
                                 





















                                                       

                                                               










                                                                       
#! /bin/sh
# $FreeBSD$

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

if [ "${LINGUAS}" ]; then
	set `echo $LINGUAS`
else
if [ "${BATCH}" ]; then
	set \"az\" \"bg\" \"ca\" \"cs\" \"da\" \"el\" \"en_GB\" \"eo\" \"es\" \"et\" \"fi\" \"he\" \"hu\" \"is\" \"it\" \"lt\" \"lv\" \"mt\" \"nl\" \"no_NY\" \"pl\" \"pt\" \"ro\" \"sk\" \"sl\" \"sr\" \"sv\" \"ta\" \"tr\"
else
	/usr/bin/dialog --title "Select languages" --clear \
		--checklist "\n\
Please select desired languages:" -1 -1 16 \
az		"Azerbaijani Turkish" OFF \
bg		"Bulgarisch" OFF \
ca		"Canada" OFF \
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 \
lt		"Lithuanian" ON \
lv		"Latvian" ON \
mt		"Maltese" ON \
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 \
en_GB		"UK English" 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}