/[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.9.12.1 - (show annotations)
Thu Feb 25 20:34:57 2010 UTC (4 years, 1 month ago) by rtoy
Branch: intl-2-branch
Changes since 1.9: +14 -0 lines
File MIME type: application/x-sh
Restart internalization work.  This new branch starts with code from
the intl-branch on date 2010-02-12 18:00:00+0500.  This version works
and

LANG=en@piglatin bin/lisp

works (once the piglatin translation is added).
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 install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/contrib
64
65 for ext in $FASL
66 do
67 install ${GROUP} ${OWNER} -m 0644 $TARGET/clx/clx-library.$ext \
68 $DESTDIR/lib/cmucl/lib/subsystems/
69 install ${GROUP} ${OWNER} -m 0644 $TARGET/hemlock/hemlock-library.$ext \
70 $DESTDIR/lib/cmucl/lib/subsystems/
71 install ${GROUP} ${OWNER} -m 0644 $TARGET/interface/clm-library.$ext \
72 $DESTDIR/lib/cmucl/lib/subsystems/
73 done
74
75 # Not sure we really need these, but we'll install them in the
76 # ext-formats directory. (Should they go somewhere else?)
77 #install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/ext-formats
78 #for f in src/i18n/NameAliases.txt src/i18n/UnicodeData.txt
79 #do
80 # echo $f
81 # install ${GROUP} ${OWNER} -m 0644 $f $DESTDIR/lib/cmucl/lib/ext-formats/
82 #done
83
84 # install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/fonts/
85 # install ${GROUP} ${OWNER} -m 0644 misc/8x13u.snf misc/fonts.dir \
86 # $DESTDIR/lib/cmucl/lib/fonts/
87 install ${GROUP} ${OWNER} -m 0644 src/hemlock/XKeysymDB \
88 src/hemlock/hemlock11.cursor src/hemlock/hemlock11.mask \
89 $TARGET/hemlock/spell-dictionary.bin \
90 $DESTDIR/lib/cmucl/lib/
91 install ${GROUP} ${OWNER} -m 0755 src/hemlock/mh-scan $DESTDIR/lib/cmucl/lib/
92 install ${GROUP} ${OWNER} -m 0755 $TARGET/motif/server/motifd \
93 $DESTDIR/lib/cmucl/lib/
94
95 # Install the contrib stuff. Create the directories and then copy the files.
96
97 for d in `(cd src; find contrib -type d -print | grep -v CVS)`
98 do
99 install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/$d
100 done
101
102 for f in `(cd src/contrib; find . -type f -print | grep -v CVS)`
103 do
104 FILE=`basename $f`
105 DIR=`dirname $f`
106 install ${GROUP} ${OWNER} -m 0644 src/contrib/$f $DESTDIR/lib/cmucl/lib/contrib/$DIR
107 done
108
109 # Install all the locale data.
110 #set -x
111 for d in `(cd src/i18n/; find locale -type d -print | grep -v CVS)`
112 do
113 install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/$d
114 done
115
116 for f in `(cd src/i18n; find locale -type f -print | grep -v 'CVS\|~.*~\|.*~')`
117 do
118 FILE=`basename $f`
119 DIR=`dirname $f`
120 install ${GROUP} ${OWNER} -m 0644 src/i18n/$f $DESTDIR/lib/cmucl/lib/$DIR
121 done
122
123 if [ -z "$INSTALL_DIR" ]; then
124 sync ; sleep 1 ; sync ; sleep 1 ; sync
125 echo Tarring extra components
126 if [ -n "$ENABLE_GZIP" ]; then
127 echo " Compressing with gzip"
128 ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \
129 gzip -c > cmucl-$VERSION-$ARCH-$OS.extra.tar.gz
130 fi
131 if [ -n "$ENABLE_BZIP" ]; then
132 echo " Compressing with bzip"
133 ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \
134 bzip2 > cmucl-$VERSION-$ARCH-$OS.extra.tar.bz2
135 fi
136
137 echo Cleaning $DESTDIR
138 [ -d $DESTDIR ] && rm -rf $DESTDIR
139 echo Done
140 fi

  ViewVC Help
Powered by ViewVC 1.1.5