/[meta-cvs]/meta-cvs/F-156CAB88D4EEE783E8C4B4146B5094E2
ViewVC logotype

Contents of /meta-cvs/F-156CAB88D4EEE783E8C4B4146B5094E2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.23 - (hide annotations)
Fri Nov 24 04:16:42 2006 UTC (7 years, 4 months ago) by kaz
Branch: MAIN
Changes since 1.22: +1 -1 lines
Use -q option of clisp during loading.
1 kaz 1.1 #!/bin/sh
2    
3 kaz 1.21 set -e
4 kaz 1.5
5 kaz 1.1 if [ $# != 1 ] ; then
6 kaz 1.5 echo
7     echo "Meta-CVS Installer"
8     echo
9     echo "Please specify the target prefix, as a full absolute path."
10     echo "For example, specifying /usr/local will place files under"
11     echo "/usr/local/bin and /usr/local/lib."
12     echo
13 kaz 1.1 exit 1
14     else
15 kaz 1.8 TARGET="$1"
16 kaz 1.1 fi
17    
18 kaz 1.12 space_check()
19 kaz 1.8 {
20     if [ $# -gt 1 ] ; then
21 kaz 1.9 echo "The path \"$*\" contains whitespace."
22 kaz 1.8 exit 1
23     fi
24     }
25    
26 kaz 1.12 dash_check()
27 kaz 1.10 {
28     case $1 in
29     -* )
30     echo "The path $1 looks like a command line option."
31     exit 1
32     ;;
33     esac
34     }
35    
36 kaz 1.8 space_check $TARGET
37 kaz 1.10 dash_check $TARGET
38 kaz 1.8
39     TARGET_LIB=$TARGET/lib/clisp/meta-cvs
40     TARGET_BIN=$TARGET/bin
41 kaz 1.5
42 kaz 1.21 mkdir -p $TARGET_LIB
43     mkdir -p $TARGET_BIN
44 kaz 1.22 clisp -q -c mcvs
45 kaz 1.23 clisp -q -i mcvs -x "(ext:saveinitmem \"mcvs\" :norc t :quiet t)"
46 kaz 1.21 cp mcvs.mem $TARGET_LIB
47 kaz 1.1
48 kaz 1.21 cat > $TARGET_BIN/mcvs <<END
49     #!$(type -P clisp) -M$TARGET_LIB/mcvs.mem
50 kaz 1.14 (meta-cvs:main)
51 kaz 1.1 END
52 kaz 1.13
53 kaz 1.1 exit 0

  ViewVC Help
Powered by ViewVC 1.1.5