/[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 - (show 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 #!/bin/sh
2
3 set -e
4
5 if [ $# != 1 ] ; then
6 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 exit 1
14 else
15 TARGET="$1"
16 fi
17
18 space_check()
19 {
20 if [ $# -gt 1 ] ; then
21 echo "The path \"$*\" contains whitespace."
22 exit 1
23 fi
24 }
25
26 dash_check()
27 {
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 space_check $TARGET
37 dash_check $TARGET
38
39 TARGET_LIB=$TARGET/lib/clisp/meta-cvs
40 TARGET_BIN=$TARGET/bin
41
42 mkdir -p $TARGET_LIB
43 mkdir -p $TARGET_BIN
44 clisp -q -c mcvs
45 clisp -q -i mcvs -x "(ext:saveinitmem \"mcvs\" :norc t :quiet t)"
46 cp mcvs.mem $TARGET_LIB
47
48 cat > $TARGET_BIN/mcvs <<END
49 #!$(type -P clisp) -M$TARGET_LIB/mcvs.mem
50 (meta-cvs:main)
51 END
52
53 exit 0

  ViewVC Help
Powered by ViewVC 1.1.5