File: classic.configure

package info (click to toggle)
asclock 2.0.12-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 936 kB
  • ctags: 305
  • sloc: ansic: 1,152; sh: 167; makefile: 63
file content (61 lines) | stat: -rwxr-xr-x 1,362 bytes parent folder | download | duplicates (12)
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
#!/bin/sh
clear
echo 
echo ASclock configure:
echo ------------------
echo
echo 'Choose language from:'
echo
echo '1) english [DEFAULT]'
echo '2) german'
echo '3) portuguese'
echo '4) dutch'
echo '5) norwegian'
echo '6) italian'
echo '7) swedish'
echo '8) spanish'
echo '9) hungarian'
echo '0) breton'
echo 'a) french'
echo 'b) czech'
echo 'c) russian'
echo 'd) ukrainian'
echo 'e) slovene'
echo 'f) indonesian'
echo 'g) danish'
echo 'h) hebrew'
echo 'i) japanese'
echo
printf "Select a language from above :"
read LANG 
rm -f weekday.xpm asclock month.xpm asclock.o
case $LANG in
    i) ANS=japanese;;
    h) ANS=hebrew;;
    g) ANS=danish;;
    f) ANS=indonesian;;
    e) ANS=slovene;; 
    d) ANS=ukrainian;;
    c) ANS=russian;;
    b) ANS=czech;;
    a) ANS=french;;
    0) ANS=breton;;
    9) ANS=hungarian;;
    8) ANS=spanish;;
    7) ANS=swedish;;
    6) ANS=italian;;
    5) ANS=norwegian;;
    4) ANS=dutch;;
    3) ANS=portuguese;;
    2) ANS=german;;
    *) ANS=english;;
esac
      ln -s ../languages/$ANS/month.xpm ./default_theme/month.xpm
      ln -s ../languages/$ANS/weekday.xpm ./default_theme/weekday.xpm
      echo $ANS has been chosen!

xmkmf
make clean
echo ------------------------------------------------------------ 
printf "                      type 'make' now !\n"
echo ------------------------------------------------------------