/[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.4.16.2 - (show annotations)
Mon Mar 16 21:10:57 2009 UTC (5 years, 1 month ago) by rtoy
Branch: unicode-utf16-branch
CVS Tags: unicode-utf16-sync-label-2009-03-16, unicode-utf16-char-support-2009-03-26, unicode-utf16-char-support-2009-03-25
Changes since 1.4.16.1: +24 -19 lines
File MIME type: application/x-sh
Sync to CVS HEAD, tag label-2009-03-16.

But don't sync Config.FreeBSD_gencgc, Config.x86_freebsd,
FreeBSD-os.c, and FreeBSD-os.h.  Let Alex sync those later.

The result seems to work as expected on Solaris and x86/linux.
Darwin (ppc or x86) untested.
1 #!/bin/sh
2
3 while getopts "G:O:I:bgh?" arg
4 do
5 case $arg in
6 G) GROUP="-g $OPTARG" ;;
7 O) OWNER="-o $OPTARG" ;;
8 I) INSTALL_DIR=$OPTARG ;;
9 b) ENABLE_BZIP=-b ;;
10 g) ENABLE_GZIP=-g ;;
11 h | \?) usage; exit 1 ;;
12 esac
13 done
14
15 shift `expr $OPTIND - 1`
16
17 if [ "$1" = "" -o "$2" = "" -o "$3" = "" -o "$4" = "" ]
18 then
19 echo "Usage: $0 target-directory version arch os"
20 exit 1
21 fi
22
23 if [ ! -d "$1" ]
24 then
25 echo "$1 isn't a directory"
26 exit 2
27 fi
28
29 DESTDIR=${INSTALL_DIR:-release}
30 TARGET="`echo $1 | sed 's:/*$::'`"
31 VERSION=$2
32 ARCH=$3
33 OS=$4
34
35 case $ARCH in
36 x86*) FASL="x86f sse2f" ;;
37 sparc*) FASL=sparcf ;;
38 alpha*) FASL=axpf ;;
39 ppc*) FASL=ppcf ;;
40 mips*) FASL=sgif ;;
41 *)
42 echo "Unknown FASL type for architecture $ARCH"
43 exit 2
44 ;;
45 esac
46
47 # Frob PATH to use /usr/ucb/install for Solaris
48 if [ `uname -s` = "SunOS" ]
49 then
50 PATH=/usr/ucb:$PATH
51 fi
52
53 if [ -z "$INSTALL_DIR" ]; then
54 echo Cleaning $DESTDIR
55 [ -d $DESTDIR ] && rm -rf $DESTDIR
56 fi
57
58 echo Installing extra components
59 install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib
60
61 install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/subsystems
62
63 for ext in $FASL
64 do
65 install ${GROUP} ${OWNER} -m 0644 $TARGET/clx/clx-library.$ext \
66 $DESTDIR/lib/cmucl/lib/subsystems/
67 install ${GROUP} ${OWNER} -m 0644 $TARGET/hemlock/hemlock-library.$ext \
68 $DESTDIR/lib/cmucl/lib/subsystems/
69 install ${GROUP} ${OWNER} -m 0644 $TARGET/interface/clm-library.$ext \
70 $DESTDIR/lib/cmucl/lib/subsystems/
71 done
72
73 # install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/fonts/
74 # install ${GROUP} ${OWNER} -m 0644 misc/8x13u.snf misc/fonts.dir \
75 # $DESTDIR/lib/cmucl/lib/fonts/
76 install ${GROUP} ${OWNER} -m 0644 src/hemlock/XKeysymDB \
77 src/hemlock/hemlock11.cursor src/hemlock/hemlock11.mask \
78 $TARGET/hemlock/spell-dictionary.bin \
79 $DESTDIR/lib/cmucl/lib/
80 install ${GROUP} ${OWNER} -m 0755 src/hemlock/mh-scan $DESTDIR/lib/cmucl/lib/
81 install ${GROUP} ${OWNER} -m 0755 $TARGET/motif/server/motifd \
82 $DESTDIR/lib/cmucl/lib/
83
84 if [ -z "$INSTALL_DIR" ]; then
85 sync ; sleep 1 ; sync ; sleep 1 ; sync
86 echo Tarring extra components
87 if [ -n "$ENABLE_GZIP" ]; then
88 echo " Compressing with gzip"
89 ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \
90 gzip -c > cmucl-$VERSION-$ARCH-$OS.extra.tar.gz
91 fi
92 if [ -n "$ENABLE_BZIP" ]; then
93 echo " Compressing with bzip"
94 ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \
95 bzip2 > cmucl-$VERSION-$ARCH-$OS.extra.tar.bz2
96 fi
97
98 echo Cleaning $DESTDIR
99 [ -d $DESTDIR ] && rm -rf $DESTDIR
100 echo Done
101 fi

  ViewVC Help
Powered by ViewVC 1.1.5