Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/system/cmb-cross
ViewVC logotype

Annotation of /sml/trunk/system/cmb-cross

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5378 - (view) (download)

1 : jhr 5378 #!/bin/sh
2 :     #
3 :     # cross compile to specified target
4 :     #
5 :    
6 :     function usage {
7 :     echo "usage: cmb-cross <target>"
8 :     echo "where <target> is one of amd64-unix, ppc-unix, sparc-unix, x86-unix, or x86-win32"
9 :     exit 1
10 :     }
11 :    
12 :     if [ $# -ne 1 ] ; then
13 :     usage
14 :     fi
15 :    
16 :     target=$1
17 :     case $target in
18 :     amd64-unix) CMB=AMD64UnixCMB ;;
19 :     ppc-unix) CMB=PPCUnixCMB ;;
20 :     sparc-unix) CMB=SparcUnixCMB ;;
21 :     x86-unix) CMB=X86UnixCMB ;;
22 :     x86-win32) CMB=X86Win32CMB ;;
23 :     *) echo "cmb-cross: unrecognized target '$target'"
24 :     exit 1
25 :     ;;
26 :     esac
27 :    
28 :     unset VERSIONTOOL_BUMP_RELEASE
29 :    
30 :     echo "$CMB.make();" | ../../bin/sml \$smlnj/compiler/all.cm

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0