/[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.4 - (hide annotations)
Fri Apr 17 20:55:17 2009 UTC (5 years ago) by rtoy
Branch: unicode-utf16-extfmt-branch
CVS Tags: unicode-snapshot-2009-05, unicode-snapshot-2009-06, unicode-utf16-extfmt-2009-06-11
Changes since 1.4.18.3: +6 -6 lines
File MIME type: application/x-sh
Let's not install the UnicodeData.txt and other support files.  I
don't think there's any real reason to do so.
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 rtoy 1.4.18.3 # Not sure we really need these, but we'll install them in the
74     # ext-formats directory. (Should they go somewhere else?)
75 rtoy 1.4.18.4 #install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/ext-formats
76     #for f in src/i18n/NameAliases.txt src/i18n/UnicodeData.txt
77     #do
78     # echo $f
79     # install ${GROUP} ${OWNER} -m 0644 $f $DESTDIR/lib/cmucl/lib/ext-formats/
80     #done
81 rtoy 1.4.18.3
82 toy 1.2 # install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/fonts/
83     # install ${GROUP} ${OWNER} -m 0644 misc/8x13u.snf misc/fonts.dir \
84 toy 1.1 # $DESTDIR/lib/cmucl/lib/fonts/
85 toy 1.2 install ${GROUP} ${OWNER} -m 0644 src/hemlock/XKeysymDB \
86 toy 1.1 src/hemlock/hemlock11.cursor src/hemlock/hemlock11.mask \
87     $TARGET/hemlock/spell-dictionary.bin \
88     $DESTDIR/lib/cmucl/lib/
89 toy 1.2 install ${GROUP} ${OWNER} -m 0755 src/hemlock/mh-scan $DESTDIR/lib/cmucl/lib/
90     install ${GROUP} ${OWNER} -m 0755 $TARGET/motif/server/motifd \
91 toy 1.1 $DESTDIR/lib/cmucl/lib/
92    
93 rtoy 1.4.18.2 if [ -z "$INSTALL_DIR" ]; then
94     sync ; sleep 1 ; sync ; sleep 1 ; sync
95     echo Tarring extra components
96     if [ -n "$ENABLE_GZIP" ]; then
97     echo " Compressing with gzip"
98     ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \
99     gzip -c > cmucl-$VERSION-$ARCH-$OS.extra.tar.gz
100     fi
101     if [ -n "$ENABLE_BZIP" ]; then
102     echo " Compressing with bzip"
103     ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \
104     bzip2 > cmucl-$VERSION-$ARCH-$OS.extra.tar.bz2
105     fi
106    
107     echo Cleaning $DESTDIR
108     [ -d $DESTDIR ] && rm -rf $DESTDIR
109     echo Done
110 toy 1.2 fi

  ViewVC Help
Powered by ViewVC 1.1.5