/[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.7 by cshapiro, Fri Jul 6 08:04:40 2007 UTC revision 1.7.4.2 by agoncharov, Tue Mar 31 03:02:22 2009 UTC
# Line 27  if [ $# = 1 ]; then Line 27  if [ $# = 1 ]; then
27      TARGET_DIR="$1"      TARGET_DIR="$1"
28      case `uname -s` in      case `uname -s` in
29      SunOS) LISP_VARIANT=sun4_solaris_gcc ;;      SunOS) LISP_VARIANT=sun4_solaris_gcc ;;
30      Linux) LISP_VARIANT=linux_gencgc ;;      Linux) LISP_VARIANT=x86_linux ;;
31      Darwin) case `uname -m` in      Darwin) case `uname -m` in
32              ppc) LISP_VARIANT=ppc_darwin ;;              ppc) LISP_VARIANT=ppc_darwin ;;
33              i386) LISP_VARIANT=x86_darwin ;;              i386) LISP_VARIANT=x86_darwin ;;
34              esac              esac
35              ;;              ;;
36      FreeBSD) LISP_VARIANT=FreeBSD_gencgc ;;      FreeBSD|freebsd) LISP_VARIANT=x86_freebsd ;;
37      # Please fill in some other common systems      # Please fill in some other common systems
38      *) echo "Sorry, please specify the desired Lisp variant."      *) echo "Sorry, please specify the desired Lisp variant."
39         exit 1 ;;         exit 1 ;;
# Line 66  if [ "$MOTIF_VARIANT" = "" ]; then Line 66  if [ "$MOTIF_VARIANT" = "" ]; then
66      case $LISP_VARIANT in      case $LISP_VARIANT in
67        alpha_linux) MOTIF_VARIANT=alpha_linux ;;        alpha_linux) MOTIF_VARIANT=alpha_linux ;;
68        alpha_osf1) MOTIF_VARIANT=alpha_osf1 ;;        alpha_osf1) MOTIF_VARIANT=alpha_osf1 ;;
69        FreeBSD*) MOTIF_VARIANT=FreeBSD ;;        x86_freebsd|FreeBSD*|freebsd*) MOTIF_VARIANT=FreeBSD ;;
70        NetBSD*) MOTIF_VARIANT=NetBSD ;;        NetBSD*) MOTIF_VARIANT=NetBSD ;;
71        OpenBSD*) MOTIF_VARIANT=OpenBSD ;;        OpenBSD*) MOTIF_VARIANT=OpenBSD ;;
72        *_darwin) MOTIF_VARIANT=Darwin ;;        *_darwin) MOTIF_VARIANT=Darwin ;;
# Line 75  if [ "$MOTIF_VARIANT" = "" ]; then Line 75  if [ "$MOTIF_VARIANT" = "" ]; then
75        hp700*) MOTIF_VARIANT=hpux_cc ;;        hp700*) MOTIF_VARIANT=hpux_cc ;;
76        pmax_mach) MOTIF_VARIANT=pmax_mach ;;        pmax_mach) MOTIF_VARIANT=pmax_mach ;;
77        sgi*) MOTIF_VARIANT=irix ;;        sgi*) MOTIF_VARIANT=irix ;;
78        linux*) MOTIF_VARIANT=x86 ;;        x86_linux|linux*) MOTIF_VARIANT=x86 ;;
79      esac      esac
80  elif [ ! -f src/motif/server/Config.$MOTIF_VARIANT ]; then  elif [ ! -f src/motif/server/Config.$MOTIF_VARIANT ]; then
81      echo "No such motif-variant could be found: Config.$MOTIF_VARIANT"      echo "No such motif-variant could be found: Config.$MOTIF_VARIANT"
# Line 91  find src -name 'CVS' -prune -o -type d - Line 91  find src -name 'CVS' -prune -o -type d -
91          | sed "s:^src:$TARGET:g" | xargs mkdir          | sed "s:^src:$TARGET:g" | xargs mkdir
92    
93  # Link Makefile and Config files  # Link Makefile and Config files
94  ( cd $TARGET/lisp ; ln -s ../../src/lisp/GNUmakefile ./Makefile )  
95  ( cd $TARGET/lisp ; ln -s ../../src/lisp/Config.$LISP_VARIANT ./Config )  (cd $TARGET/lisp
96     ln -s ../../src/lisp/GNUmakefile ../../src/lisp/Config.$LISP_VARIANT ../../src/lisp/Config.*_common .
97     ln -s Config.$LISP_VARIANT Config
98    )
99    
100  # Create empty initial map file  # Create empty initial map file
101  echo 'Map file for lisp version 0' > $TARGET/lisp/lisp.nm  echo 'Map file for lisp version 0' > $TARGET/lisp/lisp.nm
# Line 108  cat $SETENV/base-features.lisp > $TARGET Line 111  cat $SETENV/base-features.lisp > $TARGET
111  # Put in some platform specific items  # Put in some platform specific items
112  case $LISP_VARIANT in  case $LISP_VARIANT in
113    *linux*)    *linux*)
114        case $$LISP_VARIANT in        case $LISP_VARIANT in
115          *_gencgc*) gcname=":gencgc" ;;          *_gencgc*) gcname=":gencgc" ;;
116          *) gcname=":cgc" ;;          *) gcname=":cgc" ;;
117        esac        esac
# Line 121  case $LISP_VARIANT in Line 124  case $LISP_VARIANT in
124        esac        esac
125        sed "s;@@gcname@@;$gcname;" $SETENV/openbsd-features.lisp >> $TARGET/setenv.lisp        sed "s;@@gcname@@;$gcname;" $SETENV/openbsd-features.lisp >> $TARGET/setenv.lisp
126        ;;        ;;
127    *FreeBSD*)    *FreeBSD*|*freebsd*)
128        case $LISP_VARIANT in          gcname=":gencgc"
129          *_gencgc*) gcname=":gencgc" ;;          sed "s;@@gcname@@;$gcname;" $SETENV/freebsd-features.lisp >> $TARGET/setenv.lisp
         *) gcname=":cgc" ;;  
       esac  
       sed "s;@@gcname@@;$gcname;" $SETENV/freebsd-features.lisp >> $TARGET/setenv.lisp  
130        ;;        ;;
131    *solaris*)    *solaris*)
132        cat $SETENV/solaris-features.lisp >> $TARGET/setenv.lisp        cat $SETENV/solaris-features.lisp >> $TARGET/setenv.lisp

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.7.4.2

  ViewVC Help
Powered by ViewVC 1.1.5