/[cmucl]/src/tools/make-extra-dist.sh
ViewVC logotype

Contents of /src/tools/make-extra-dist.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3.8.1 - (show annotations)
Mon Dec 19 01:10:25 2005 UTC (8 years, 4 months ago) by rtoy
Branch: ppc_gencgc_branch
CVS Tags: ppc_gencgc_snap_2006-01-06, ppc_gencgc_snap_2005-12-17
Changes since 1.3: +2 -2 lines
File MIME type: application/x-sh
Merge code from main branch of 2005-12-17 to ppc gencgc branch.  Still
doesn't work of course.
1 #!/bin/sh
2
3 while getopts "G:O:bgh?" arg
4 do
5 case $arg in
6 G) GROUP="-g $OPTARG" ;;
7 O) OWNER="-o $OPTARG" ;;
8 b) ENABLE_BZIP=-b ;;
9 g) ENABLE_GZIP=-g ;;
10 h | \?) usage; exit 1 ;;
11 esac
12 done
13
14 shift `expr $OPTIND - 1`
15
16 if [ "$1" = "" -o "$2" = "" -o "$3" = "" -o "$4" = "" ]
17 then
18 echo "Usage: $0 target-directory version arch os"
19 exit 1
20 fi
21
22 if [ ! -d "$1" ]
23 then
24 echo "$1 isn't a directory"
25 exit 2
26 fi
27
28 DESTDIR=release
29 TARGET="`echo $1 | sed 's:/*$::'`"
30 VERSION=$2
31 ARCH=$3
32 OS=$4
33
34 case $ARCH in
35 x86*) FASL=x86f ;;
36 sparc*) FASL=sparcf ;;
37 alpha*) FASL=axpf ;;
38 ppc*) FASL=ppcf ;;
39 mips*) FASL=sgif ;;
40 *)
41 echo "Unknown FASL type for architecture $ARCH"
42 exit 2
43 ;;
44 esac
45
46 # Frob PATH to use /usr/ucb/install for Solaris
47 if [ `uname -s` = "SunOS" ]
48 then
49 PATH=/usr/ucb:$PATH
50 fi
51
52 echo Cleaning $DESTDIR
53 [ -d $DESTDIR ] && rm -rf $DESTDIR
54
55 echo Installing extra components
56 install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib
57 install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/subsystems
58 install ${GROUP} ${OWNER} -m 0644 $TARGET/clx/clx-library.$FASL \
59 $DESTDIR/lib/cmucl/lib/subsystems/
60 install ${GROUP} ${OWNER} -m 0644 $TARGET/hemlock/hemlock-library.$FASL \
61 $DESTDIR/lib/cmucl/lib/subsystems/
62 # install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/fonts/
63 # install ${GROUP} ${OWNER} -m 0644 misc/8x13u.snf misc/fonts.dir \
64 # $DESTDIR/lib/cmucl/lib/fonts/
65 install ${GROUP} ${OWNER} -m 0644 src/hemlock/XKeysymDB \
66 src/hemlock/hemlock11.cursor src/hemlock/hemlock11.mask \
67 $TARGET/hemlock/spell-dictionary.bin \
68 $DESTDIR/lib/cmucl/lib/
69 install ${GROUP} ${OWNER} -m 0755 src/hemlock/mh-scan $DESTDIR/lib/cmucl/lib/
70 install ${GROUP} ${OWNER} -m 0644 $TARGET/interface/clm-library.$FASL \
71 $DESTDIR/lib/cmucl/lib/subsystems/
72 install ${GROUP} ${OWNER} -m 0755 $TARGET/motif/server/motifd \
73 $DESTDIR/lib/cmucl/lib/
74
75 sync ; sleep 1 ; sync ; sleep 1 ; sync
76 echo Tarring extra components
77 if [ -n "$ENABLE_GZIP" ]; then
78 echo " Compressing with gzip"
79 ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \
80 gzip -c > cmucl-$VERSION-$ARCH-$OS.extra.tar.gz
81 fi
82 if [ -n "$ENABLE_BZIP" ]; then
83 echo " Compressing with bzip"
84 ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \
85 bzip2 > cmucl-$VERSION-$ARCH-$OS.extra.tar.bz2
86 fi
87
88 echo Cleaning $DESTDIR
89 [ -d $DESTDIR ] && rm -rf $DESTDIR
90 echo Done

  ViewVC Help
Powered by ViewVC 1.1.5