/[cmucl]/src/tools/create-target.sh
ViewVC logotype

Diff of /src/tools/create-target.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4.2.1 by rtoy, Mon Dec 19 01:10:25 2005 UTC revision 1.14 by rtoy, Wed Dec 22 02:12:52 2010 UTC
# Line 26  if [ $# = 1 ]; then Line 26  if [ $# = 1 ]; then
26      # Only target directory given.  Try to deduce the lisp-variant      # Only target directory given.  Try to deduce the lisp-variant
27      TARGET_DIR="$1"      TARGET_DIR="$1"
28      case `uname -s` in      case `uname -s` in
29      SunOS) LISP_VARIANT=sun4_solaris_gcc ;;      SunOS)
30      Linux) LISP_VARIANT=linux_gencgc ;;          case `uname -m` in
31      Darwin) LISP_VARIANT=ppc_darwin ;;            i86pc) LISP_VARIANT=x86_solaris_sunc ;;
32      FreeBSD) LISP_VARIANT=FreeBSD_gencgc ;;            sun*) LISP_VARIANT=sparc_gcc ;;
33            esac
34            ;;
35        Linux) LISP_VARIANT=x86_linux ;;
36        Darwin) case `uname -m` in
37                ppc) LISP_VARIANT=ppc_darwin ;;
38                i386) LISP_VARIANT=x86_darwin ;;
39                esac
40                ;;
41        FreeBSD|freebsd) LISP_VARIANT=x86_freebsd ;;
42      # Please fill in some other common systems      # Please fill in some other common systems
43      *) echo "Sorry, please specify the desired Lisp variant."      *) echo "Sorry, please specify the desired Lisp variant."
44         exit 1 ;;         exit 1 ;;
# Line 62  if [ "$MOTIF_VARIANT" = "" ]; then Line 71  if [ "$MOTIF_VARIANT" = "" ]; then
71      case $LISP_VARIANT in      case $LISP_VARIANT in
72        alpha_linux) MOTIF_VARIANT=alpha_linux ;;        alpha_linux) MOTIF_VARIANT=alpha_linux ;;
73        alpha_osf1) MOTIF_VARIANT=alpha_osf1 ;;        alpha_osf1) MOTIF_VARIANT=alpha_osf1 ;;
74        FreeBSD*) MOTIF_VARIANT=FreeBSD ;;        x86_freebsd|FreeBSD*|freebsd*) MOTIF_VARIANT=FreeBSD ;;
75        NetBSD*) MOTIF_VARIANT=NetBSD ;;        NetBSD*) MOTIF_VARIANT=NetBSD ;;
76        OpenBSD*) MOTIF_VARIANT=OpenBSD ;;        OpenBSD*) MOTIF_VARIANT=OpenBSD ;;
77        *_darwin) MOTIF_VARIANT=Darwin ;;        *_darwin) MOTIF_VARIANT=Darwin ;;
78        sun4_solaris*) MOTIF_VARIANT=solaris ;;        sun4_solaris_gcc|sparc_gcc) MOTIF_VARIANT=solaris ;;
79          sun4_solaris_sunc|sparc_sunc|x86_solaris_sunc) MOTIF_VARIANT=solaris_sunc ;;
80        sun4c*) MOTIF_VARIANT=sun4c_411 ;;        sun4c*) MOTIF_VARIANT=sun4c_411 ;;
81        hp700*) MOTIF_VARIANT=hpux_cc ;;        hp700*) MOTIF_VARIANT=hpux_cc ;;
82        pmax_mach) MOTIF_VARIANT=pmax_mach ;;        pmax_mach) MOTIF_VARIANT=pmax_mach ;;
83        sgi*) MOTIF_VARIANT=irix ;;        sgi*) MOTIF_VARIANT=irix ;;
84        linux*) MOTIF_VARIANT=x86 ;;        x86_linux|linux*) MOTIF_VARIANT=x86 ;;
85      esac      esac
86  elif [ ! -f src/motif/server/Config.$MOTIF_VARIANT ]; then  elif [ ! -f src/motif/server/Config.$MOTIF_VARIANT ]; then
87      echo "No such motif-variant could be found: Config.$MOTIF_VARIANT"      echo "No such motif-variant could be found: Config.$MOTIF_VARIANT"
# Line 87  find src -name 'CVS' -prune -o -type d - Line 97  find src -name 'CVS' -prune -o -type d -
97          | sed "s:^src:$TARGET:g" | xargs mkdir          | sed "s:^src:$TARGET:g" | xargs mkdir
98    
99  # Link Makefile and Config files  # Link Makefile and Config files
100  ( cd $TARGET/lisp ; ln -s ../../src/lisp/GNUmakefile ./Makefile )  
101  ( cd $TARGET/lisp ; ln -s ../../src/lisp/Config.$LISP_VARIANT ./Config )  (cd $TARGET/lisp
102     ln -s ../../src/lisp/GNUmakefile ../../src/lisp/Config.$LISP_VARIANT ../../src/lisp/Config.*_common .
103     ln -s Config.$LISP_VARIANT Config
104    )
105    
106  # Create empty initial map file  # Create empty initial map file
107  echo 'Map file for lisp version 0' > $TARGET/lisp/lisp.nm  echo 'Map file for lisp version 0' > $TARGET/lisp/lisp.nm
# Line 104  cat $SETENV/base-features.lisp > $TARGET Line 117  cat $SETENV/base-features.lisp > $TARGET
117  # Put in some platform specific items  # Put in some platform specific items
118  case $LISP_VARIANT in  case $LISP_VARIANT in
119    *linux*)    *linux*)
120        case $$LISP_VARIANT in        gcname=":gencgc"
         *_gencgc*) gcname=":gencgc" ;;  
         *) gcname=":cgc" ;;  
       esac  
121        sed "s;@@gcname@@;$gcname;" $SETENV/linux-features.lisp >> $TARGET/setenv.lisp        sed "s;@@gcname@@;$gcname;" $SETENV/linux-features.lisp >> $TARGET/setenv.lisp
122        ;;        ;;
123    *OpenBSD*)    *OpenBSD*)
# Line 117  case $LISP_VARIANT in Line 127  case $LISP_VARIANT in
127        esac        esac
128        sed "s;@@gcname@@;$gcname;" $SETENV/openbsd-features.lisp >> $TARGET/setenv.lisp        sed "s;@@gcname@@;$gcname;" $SETENV/openbsd-features.lisp >> $TARGET/setenv.lisp
129        ;;        ;;
130    *FreeBSD*)    *FreeBSD*|*freebsd*)
131        case $LISP_VARIANT in        gcname=":gencgc"
         *_gencgc*) gcname=":gencgc" ;;  
         *) gcname=":cgc" ;;  
       esac  
132        sed "s;@@gcname@@;$gcname;" $SETENV/freebsd-features.lisp >> $TARGET/setenv.lisp        sed "s;@@gcname@@;$gcname;" $SETENV/freebsd-features.lisp >> $TARGET/setenv.lisp
133        ;;        ;;
134    *solaris*)    *solaris*)

Legend:
Removed from v.1.4.2.1  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.5