/[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.6.1 - (hide annotations)
Sat May 22 12:13:45 2004 UTC (9 years, 10 months ago) by rtoy
Branch: UNICODE-BRANCH
Changes since 1.3: +0 -0 lines
File MIME type: application/x-sh
Perform trivial merge from head to unicode-branch.
1 toy 1.1 #!/bin/sh
2    
3 toy 1.2 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 toy 1.1 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 toy 1.2 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 toy 1.1 $DESTDIR/lib/cmucl/lib/subsystems/
60 toy 1.2 install ${GROUP} ${OWNER} -m 0644 $TARGET/hemlock/hemlock-library.$FASL \
61 toy 1.1 $DESTDIR/lib/cmucl/lib/subsystems/
62 toy 1.2 # install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/fonts/
63     # install ${GROUP} ${OWNER} -m 0644 misc/8x13u.snf misc/fonts.dir \
64 toy 1.1 # $DESTDIR/lib/cmucl/lib/fonts/
65 toy 1.2 install ${GROUP} ${OWNER} -m 0644 src/hemlock/XKeysymDB \
66 toy 1.1 src/hemlock/hemlock11.cursor src/hemlock/hemlock11.mask \
67     $TARGET/hemlock/spell-dictionary.bin \
68     $DESTDIR/lib/cmucl/lib/
69 toy 1.2 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 toy 1.1 $DESTDIR/lib/cmucl/lib/subsystems/
72 toy 1.2 install ${GROUP} ${OWNER} -m 0755 $TARGET/motif/server/motifd \
73 toy 1.1 $DESTDIR/lib/cmucl/lib/
74    
75     sync ; sleep 1 ; sync ; sleep 1 ; sync
76     echo Tarring extra components
77 toy 1.2 if [ -n "$ENABLE_GZIP" ]; then
78     echo " Compressing with gzip"
79     ( cd $DESTDIR ; tar cf - lib ) | \
80 toy 1.1 gzip -c > cmucl-$VERSION-$ARCH-$OS.extra.tar.gz
81 toy 1.2 fi
82     if [ -n "$ENABLE_BZIP" ]; then
83     echo " Compressing with bzip"
84     ( cd $DESTDIR ; tar cf - lib ) | \
85 toy 1.3 bzip2 > cmucl-$VERSION-$ARCH-$OS.extra.tar.bz2
86 toy 1.2 fi
87 toy 1.1
88     echo Cleaning $DESTDIR
89     [ -d $DESTDIR ] && rm -rf $DESTDIR
90     echo Done

  ViewVC Help
Powered by ViewVC 1.1.5