File: configure

package info (click to toggle)
asclock 2.0.12-33
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 1,464 kB
  • sloc: ansic: 1,229; sh: 179; makefile: 74
file content (50 lines) | stat: -rwxr-xr-x 1,312 bytes parent folder | download | duplicates (6)
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
#!/bin/sh
clear
echo Welcome to the new world of asclock!
echo
echo you can build one of the following themes into asclock as a default theme,
echo "without specifying it with -t <theme-name>"
echo
cd themes
for i in *
do
  echo $i
done

printf "choose a theme from above: "
read line

for i in *
do
  if test $i = $line
  then cd ..
    echo
    echo you selected \'$line\'
    echo
    echo proceed by saying 'make' and then 'make install' if appropriate
    echo
    rm -rf default_theme
    if ! test -f themes/$line/classic
    then ln -s themes/$line default_theme
         xmkmf
         rm -f *.o *~ asclock core default.h
         exit 0
    else
	 mkdir default_theme
	 ln -s ../themes/$line/config     default_theme/config
	 ln -s ../themes/$line/date.xpm   default_theme/date.xpm
	 ln -s ../themes/$line/clock.xpm  default_theme/clock.xpm
	 ln -s ../themes/$line/led.xpm    default_theme/led.xpm
	 ln -s ../themes/$line/hour.xpm   default_theme/hour.xpm
	 ln -s ../themes/$line/minute.xpm default_theme/minute.xpm
	 ln -s ../themes/$line/second.xpm default_theme/second.xpm
         ln -s ../themes/$line/beats.xpm  default_theme/beats.xpm
	 echo "static char *deftheme = \"$line\" ;" > default.h
	 exec ./classic.configure
    fi
  fi
done

echo try again. The theme $line does not exist..
exit -1