/[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.18.2 - (hide annotations)
Wed Mar 18 15:37:29 2009 UTC (5 years ago) by rtoy
Branch: unicode-utf16-extfmt-branch
CVS Tags: unicode-utf16-extfmt-2009-03-27
Changes since 1.4.18.1: +24 -19 lines
File MIME type: application/x-sh
Sync to utf16 branch, tag unicode-utf16-sync-label-2009-03-16.
1 toy 1.1 #!/bin/sh
2    
3 rtoy 1.4.18.2 while getopts "G:O:I:bgh?" arg
4 toy 1.2 do
5     case $arg in
6     G) GROUP="-g $OPTARG" ;;
7     O) OWNER="-o $OPTARG" ;;
8 rtoy 1.4.18.2 I) INSTALL_DIR=$OPTARG ;;
9 toy 1.2 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 toy 1.1 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 rtoy 1.4.18.2 DESTDIR=${INSTALL_DIR:-release}
30 toy 1.1 TARGET="`echo $1 | sed 's:/*$::'`"
31     VERSION=$2
32     ARCH=$3
33     OS=$4
34    
35     case $ARCH in
36 rtoy 1.4.18.1 x86*) FASL="x86f sse2f" ;;
37 toy 1.1 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 rtoy 1.4.18.2 if [ -z "$INSTALL_DIR" ]; then
54     echo Cleaning $DESTDIR
55     [ -d $DESTDIR ] && rm -rf $DESTDIR
56     fi
57 toy 1.1
58     echo Installing extra components
59 toy 1.2 install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib
60 rtoy 1.4.18.1
61 toy 1.2 install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/subsystems
62 rtoy 1.4.18.1
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 toy 1.2 # install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/fonts/
74     # install ${GROUP} ${OWNER} -m 0644 misc/8x13u.snf misc/fonts.dir \
75 toy 1.1 # $DESTDIR/lib/cmucl/lib/fonts/
76 toy 1.2 install ${GROUP} ${OWNER} -m 0644 src/hemlock/XKeysymDB \
77 toy 1.1 src/hemlock/hemlock11.cursor src/hemlock/hemlock11.mask \
78     $TARGET/hemlock/spell-dictionary.bin \
79     $DESTDIR/lib/cmucl/lib/
80 toy 1.2 install ${GROUP} ${OWNER} -m 0755 src/hemlock/mh-scan $DESTDIR/lib/cmucl/lib/
81     install ${GROUP} ${OWNER} -m 0755 $TARGET/motif/server/motifd \
82 toy 1.1 $DESTDIR/lib/cmucl/lib/
83    
84 rtoy 1.4.18.2 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 toy 1.2 fi

  ViewVC Help
Powered by ViewVC 1.1.5