/[cmucl]/src/tools/build-all.sh
ViewVC logotype

Contents of /src/tools/build-all.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Thu Oct 14 17:48:26 2010 UTC (3 years, 6 months ago) by rtoy
Branch: MAIN
File MIME type: application/x-sh
Initial revision.
1 rtoy 1.1 #! /bin/sh
2    
3     # Build all variants of cmucl. This means build x87 and sse2 versions
4     # for both unicode and non-unicode variants.
5     # Basically call build.sh to do the builds.
6    
7     usage ()
8     {
9     echo "build-all.sh [bBCvU] [-o old] [-8 old8bit]"
10     echo ""
11     echo "Build all variants of cmucl for a specific architecture."
12     echo "This means build the unicode and non-unicode variants."
13     echo "For x86 architectures, the x87 and sse2 cores are also built."
14     echo "This script basically automates calling build.sh for all the"
15     echo "variants, using the most common options. If there are special"
16     echo "requirements, then you must use build.sh itself instead of this"
17     echo "script."
18     echo ""
19     echo " -b d Basename of the different build directories."
20     echo " ${d}-2, ${d}-3, ${d}-4 for unicode"
21     echo " ${d}-8bit-2, ${d}-8bit-3, ${d}-8bit-4 for non-unicode"
22     echo " -B file Use file as a boot file. Maybe be specified more than once"
23     echo " The file is relative to the bootfiles/<version> directory"
24     echo ' -C [l m] Create the build directories. The args are what'
25     echo ' you would give to create-target.sh for the lisp'
26     echo ' and motif variant.'
27     echo ' -v v Use the given string as the version. Default is'
28     echo " today's date"
29     echo " -o x Use specified Lisp to build unicode version."
30     echo " (only applicable for build 1)"
31     echo " -8 x Use specified Lisp to build 8-bit version."
32     echo " (only applicable for build 1)"
33     echo " -U Update and overwite the CVS translations files."
34     }
35    
36     VERSION="CVS Head `date '+%Y-%m-%d %H:%M:%S'`"
37     BASE=build
38    
39     while getopts "Ub:v:C:o:8:?" arg
40     do
41     case $arg in
42     b) BASE="$OPTARG" ;;
43     B) bootfiles="$bootfiles -B $OPTARG" ;;
44     C) CREATE_OPT="-C $OPTARG"
45     CREATE_DIRS=yes ;;
46     o) OLDLISP="$OPTARG" ;;
47     8) OLD8="$OPTARG" ;;
48     v) VERSION="$OPTARG" ;;
49     U) UPDATE_TRANS="-U" ;;
50     \?) usage ;;
51     esac
52     done
53    
54     if [ "$BASE" = "" ]; then
55     echo "-b option required"
56     exit 1
57     fi
58    
59     if [ "$OLDLISP" = "" -a "$OLD8" = "" ]; then
60     echo "-o or -8 option required"
61     exit 1
62     fi
63    
64     buildx86 ()
65     {
66     if [ -n "$OLD8" ]; then
67     # Build non-unicode versions
68     set -x
69     src/tools/build.sh -f x87 -b ${BASE}-8bit $bootfiles -v "$VERSION" ${CREATE_OPT} ${UPDATE_TRANS} -o "$OLD8"
70     src/tools/build.sh -f sse2 -b ${BASE}-8bit $bootfiles -v "$VERSION" ${CREATE_OPT} ${UPDATE_TRANS} -o "$OLD8"
71     set +x
72     fi
73     # Build the unicode versions
74     if [ -n "$OLDLISP" ]; then
75     set -x
76     src/tools/build.sh -f x87 -b ${BASE} $bootfiles -v "$VERSION" ${CREATE_OPT} ${UPDATE_TRANS} -o "$OLDLISP"
77     src/tools/build.sh -f sse2 -b ${BASE} $bootfiles -v "$VERSION" ${CREATE_OPT} ${UPDATE_TRANS} -o "$OLDLISP"
78     set +x
79     fi
80     }
81    
82     buildsun4 ()
83     {
84     # Build non-unicode versions
85     if [ -n "$OLD8" ]; then
86     set -x
87     src/tools/build.sh -b ${BASE}-8bit $bootfiles -v "$VERSION" ${CREATE_OPT} ${UPDATE_TRANS} -o "$OLD8"
88     set +x
89     fi
90     # Build the unicode version.
91     if [ -n "$OLDLISP" ]; then
92     set -x
93     src/tools/build.sh -b ${BASE} $bootfiles -v "$VERSION" ${CREATE_OPT} ${UPDATE_TRANS} -o "$OLDLISP"
94     set +x
95     fi
96     }
97    
98     case `uname -m` in
99     i386*|x86*) buildx86 ;;
100     sun*) buildsun4 ;;
101     *) echo "Unsupported architecture: `uname -m`" ;;
102     esac

  ViewVC Help
Powered by ViewVC 1.1.5