/[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.10.2 - (hide annotations)
Fri Feb 12 15:02:06 2010 UTC (4 years, 2 months ago) by rtoy
Branch: intl-branch
CVS Tags: intl-branch-working-2010-02-19-1000, intl-branch-2010-03-18-1300
Changes since 1.9.10.1: +10 -1 lines
File MIME type: application/x-sh
Copy the po files from the src directory, but copy the mo files from
the build (target) directory, since these are now created there.
1 toy 1.1 #!/bin/sh
2    
3 rtoy 1.6 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.6 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.8 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.5 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.6 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.5
61 toy 1.2 install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/subsystems
62 rtoy 1.5
63 rtoy 1.9 install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/contrib
64    
65 rtoy 1.5 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 rtoy 1.7 # 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 toy 1.2 # install -d ${GROUP} ${OWNER} -m 0755 $DESTDIR/lib/cmucl/lib/fonts/
85     # install ${GROUP} ${OWNER} -m 0644 misc/8x13u.snf misc/fonts.dir \
86 toy 1.1 # $DESTDIR/lib/cmucl/lib/fonts/
87 toy 1.2 install ${GROUP} ${OWNER} -m 0644 src/hemlock/XKeysymDB \
88 toy 1.1 src/hemlock/hemlock11.cursor src/hemlock/hemlock11.mask \
89     $TARGET/hemlock/spell-dictionary.bin \
90     $DESTDIR/lib/cmucl/lib/
91 toy 1.2 install ${GROUP} ${OWNER} -m 0755 src/hemlock/mh-scan $DESTDIR/lib/cmucl/lib/
92     install ${GROUP} ${OWNER} -m 0755 $TARGET/motif/server/motifd \
93 toy 1.1 $DESTDIR/lib/cmucl/lib/
94    
95 rtoy 1.9 # 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 rtoy 1.9.10.1 # Install all the locale data.
110 rtoy 1.9.10.2
111 rtoy 1.9.10.1 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 rtoy 1.9.10.2 # Install mo files.
117     for f in `(cd $TARGET/i18n; find locale -type f -print | grep -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
125 rtoy 1.9.10.1 for f in `(cd src/i18n; find locale -type f -print | grep -v 'CVS\|~.*~\|.*~')`
126     do
127     FILE=`basename $f`
128     DIR=`dirname $f`
129     install ${GROUP} ${OWNER} -m 0644 src/i18n/$f $DESTDIR/lib/cmucl/lib/$DIR
130     done
131    
132 rtoy 1.6 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 toy 1.2 fi

  ViewVC Help
Powered by ViewVC 1.1.5