Changeset 26271 for trunk/dports/gnustep


Ignore:
Timestamp:
Jun 18, 2007, 12:55:23 AM (12 years ago)
Author:
yves@…
Message:

ever closer to perfection, but still bery far away

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/gnustep/gnustep/files/config-gnustep-user.sh

    r26269 r26271  
    3636echo
    3737
     38echo 'You can enter your language right now or '
     39echo -n '"list" for a list of supported languages or "enter" to continue : '
     40read
     41gs_lang=${REPLY:-false}
     42if [ $gs_lang = "list" ]
     43    then
     44    $t_clear
     45    ls "$GNUSTEP_SYSTEM_ROOT/Library/Libraries/gnustep-base/Versions/1.14/Resources/Languages" | grep -v Locale
     46    echo
     47    echo -n 'you can enter a name right now or "enter" to continue : '
     48    read
     49    gs_lang=${REPLY:-false}
     50fi
     51if [ $gs_lang != false ]
     52    then
     53    $t_bold
     54    if [ ! -f $GNUSTEP_SYSTEM_ROOT/Library/Libraries/gnustep-base/Versions/1.14/Resources/Languages/$gs_lang ]
     55        then
     56        echo "$gs_lang is not a language supported by GNUstep"
     57        gs_lang=false
     58    else
     59        echo "GNUstep language = $gs_lang"
     60    fi
     61    $t_norm
     62    echo
     63    if [ -z $LANG ] && [ -d /usr/share/locale ]
     64        then
     65        echo
     66        echo 'You should also set your LANG environment before running this script'
     67        echo
     68        echo 'You can enter "list" for a hint and exit or "enter" to continue : '
     69        read
     70        sh_lang=${REPLY:-false}
     71        if [ $sh_lang = "list" ]
     72            then
     73            $t_clear
     74            echo "Language codes available for LANG :"
     75            echo
     76            ls /usr/share/locale
     77            echo
     78            echo "For example, you can set your LANG environment by adding"
     79            echo "export LANG=fr_CA.UTF-8"
     80            echo "export LC_ALL=fr_CA.UTF-8"
     81            echo "to your ~/.profile"
     82            echo "if you use the French language"
     83            echo
     84            exit 1
     85        fi
     86    fi
     87fi
     88
     89
    3890#
    3991# ask for timezone
     
    4698zone=${REPLY:-false}
    4799if [ $zone != false ]
    48         then
    49         if [ $zone = "list" ]
    50                 then
    51                 cat $GNUSTEP_SYSTEM_ROOT/Library/Libraries/gnustep-base/Versions/1.14/Resources/NSTimeZones/regions | awk '{print $2}' | more
    52                 echo
    53                 echo -n 'you can enter timezone right now or "enter" to continue : '
    54                 read
    55                 zone=${REPLY:-false}
    56         fi
     100    then
     101    if [ $zone = "list" ]
     102        then
     103        cat $GNUSTEP_SYSTEM_ROOT/Library/Libraries/gnustep-base/Versions/1.14/Resources/NSTimeZones/regions | awk '{print $2}' | more
     104        echo
     105        echo -n 'you can enter timezone right now or "enter" to continue : '
     106        read
     107        zone=${REPLY:-false}
     108    fi
    57109fi
    58110if [ $zone != false ]
    59         then
    60         $t_bold
    61         if ! `grep -q $zone $GNUSTEP_SYSTEM_ROOT/Library/Libraries/gnustep-base/Versions/1.14/Resources/NSTimeZones/regions`
    62                 then
    63                 echo "$zone is not a recognized region name"
    64                 zone=false
    65         else
    66                 echo Timezone = $zone
    67         fi
    68         $t_norm
     111    then
     112    $t_bold
     113    if ! `grep -q " $zone\$" $GNUSTEP_SYSTEM_ROOT/Library/Libraries/gnustep-base/Versions/1.14/Resources/NSTimeZones/regions`
     114        then
     115        echo "$zone is not a recognized region name"
     116        zone=false
     117    else
     118        echo Timezone = $zone
     119    fi
     120    $t_norm
    69121fi
    70122
     
    73125
    74126if [ ! -d $GNUSTEP_USER_ROOT/Library/WindowMaker ]
    75         then
    76         echo -n "Installing WindowMaker resources ... "
    77         mkdir $GNUSTEP_USER_ROOT
    78         wmaker.inst
    79         echo "Done"
     127    then
     128    echo -n "Installing WindowMaker resources ... "
     129    mkdir $GNUSTEP_USER_ROOT
     130    wmaker.inst
     131    echo "Done"
    80132fi
    81133echo "Setting AntiAliased text in WindowMaker"
     
    99151gdefaults write NSGlobalDomain NSFontSize '10'
    100152
     153if [ $gs_lang != false ]
     154    then
     155    sleep 2
     156    echo "Language        : $gs_lang"
     157    gdefaults write NSGlobalDomain Language "($gs_lang)"
     158fi
     159
    101160if [ $zone != false ]
    102         then
    103         sleep 2
     161    then
     162    sleep 2
    104163    echo "Local Time Zone : $zone"
    105         gdefaults write NSGlobalDomain "Local Time Zone" $zone
     164    gdefaults write NSGlobalDomain "Local Time Zone" $zone
    106165fi
    107166
     
    112171sleep 2
    113172bundledir="$GNUSTEP_LOCAL_ROOT/Library/Bundles"
    114 echo "Resetting GSAppKitUserBundles (in NSGlobalDomain)"
     173echo "Resetting       : GSAppKitUserBundles (in NSGlobalDomain)"
    115174gdefaults write NSGlobalDomain GSAppKitUserBundles "($bundledir/Camaelon.themeEngine, $bundledir/EtoileMenus.bundle, $bundledir/EtoileBehavior.bundle)"
    116175sleep 2
    117 echo "Setting User Interface Theme to Nesedah (in Camaelon domain)"
     176echo "Setting         : User Interface Theme to Nesedah (in Camaelon domain)"
    118177gdefaults write Camaelon Theme Nesedah
    119178
Note: See TracChangeset for help on using the changeset viewer.