/[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.14 - (show annotations)
Sat Sep 25 18:47:33 2010 UTC (3 years, 6 months ago) by rtoy
Branch: MAIN
CVS Tags: GIT-CONVERSION, cross-sol-x86-merged, cross-sol-x86-base, snapshot-2010-12, snapshot-2010-11, snapshot-2011-09, snapshot-2011-06, snapshot-2011-07, snapshot-2011-04, snapshot-2011-02, snapshot-2011-03, snapshot-2011-01, cross-sol-x86-2010-12-20, cross-sparc-branch-base, HEAD
Branch point for: cross-sparc-branch, cross-sol-x86-branch
Changes since 1.13: +6 -6 lines
File MIME type: application/x-sh
Don't need to install the po files since they're not used by anything.
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 | egrep -v "CVS|asdf|defsystem")`
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 | egrep -v "CVS|asdf|defsystem")`
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
111 for d in `(cd src/i18n/; find locale -type d -print | egrep -v CVS)`
112 do
113 install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/$d
114 done
115
116 # Install mo files.
117 for f in `(cd $TARGET/i18n; find locale -type f -print | egrep -v 'CVS|~.*~|.*~')`
118 do
119 FILE=`basename $f`
120 DIR=`dirname $f`
121 install ${GROUP} ${OWNER} -m 0644 $TARGET/i18n/$f $DESTDIR/lib/cmucl/lib/$DIR
122 done
123
124 # Install po files. (Do we really need to distribute the po files?)
125 #for f in `(cd $TARGET/i18n; find locale -type f -print | egrep -v 'CVS|~.*~|.*~')`
126 #do
127 # FILE=`basename $f`
128 # DIR=`dirname $f`
129 # install ${GROUP} ${OWNER} -m 0644 $TARGET/i18n/$f $DESTDIR/lib/cmucl/lib/$DIR
130 #done
131
132 if [ -z "$INSTALL_DIR" ]; then
133 sync ; sleep 1 ; sync ; sleep 1 ; sync
134 echo Tarring extra components
135 if [ -n "$ENABLE_GZIP" ]; then
136 echo " Compressing with gzip"
137 ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \
138 gzip -c > cmucl-$VERSION-$ARCH-$OS.extra.tar.gz
139 fi
140 if [ -n "$ENABLE_BZIP" ]; then
141 echo " Compressing with bzip"
142 ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \
143 bzip2 > cmucl-$VERSION-$ARCH-$OS.extra.tar.bz2
144 fi
145
146 echo Cleaning $DESTDIR
147 [ -d $DESTDIR ] && rm -rf $DESTDIR
148 echo Done
149 fi

  ViewVC Help
Powered by ViewVC 1.1.5