dospinport(){
port=$1
- if [ $port != "all" ]; then
- portname="`echo $port|tr '[a-z]' '[A-Z]'`"
- else
- portname="Widgets"
- fi
+ case "$port" in
+ all)
+ portname="Widgets";;
+ base)
+ portname="Base";;
+ motif)
+ portname="Motif";;
+ mac)
+ portname="Mac";;
+ *)
+ # for all the others (DFB, GTK, MGL, MSW, X11) just use the
+ # upper-case version as they are abbreviations
+ portname=`echo $port | tr '[a-z]' '[A-Z]'`;;
+ esac
echo "Creating wx$portname distribution..."