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

SCM Repository

[smlnj] Diff of /config/releases/release-110.66/_ml-build
ViewVC logotype

Diff of /config/releases/release-110.66/_ml-build

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

revision 1743, Tue Dec 21 21:11:40 2004 UTC revision 1744, Thu Dec 23 23:58:38 2004 UTC
# Line 27  Line 27 
27    
28  usage() {  usage() {
29      echo ${thisscript}: $*      echo ${thisscript}: $*
30      echo Usage: $thisscript root-group main-function heapfile      echo Usage: $thisscript '[-S setup] root-group [main-function [heapfile]]'
31      exit 1      exit 1
32  }  }
33    
34    setup=
35    
36  while [ $# != 0 ] ; do  while [ $# != 0 ] ; do
37      case $1 in      case $1 in
38      -D*|-U*|-C*)      -D*|-U*|-C*)
39          dulist="$dulist $1"          dulist="$dulist $1"
40          shift          shift
41          ;;          ;;
42        -S)
43            shift
44            if [ $# = 0 ] ; then
45                usage missing argument for -S
46            fi
47            setup=$1
48            shift
49            ;;
50      *)      *)
51          break          break
52          ;;          ;;
53      esac      esac
54  done  done
55    
56  if [ $# = 3 ] ; then  if [ $# = 4 ] ; then
     setup=  
     root=$1  
     main=$2  
     heap=$3  
 elif [ $# = 4 ] ; then  
57      setup=$1      setup=$1
58      root=$2      root=$2
59      main=$3      main=$3
60      heap=$4      heap=$4
61    elif [ $# = 3 ] ; then
62        root=$1
63        main=$2
64        heap=$3
65    elif [ $# = 2 ] ; then
66        root=$1
67        main=$2
68        heap=`basename "$root" .cm`
69    elif [ $# = 1 ] ; then
70        root=$1
71        # quick hack for now:
72        main=Test.main
73        heap=`basename "$root" .cm`
74  else  else
75      usage wrong number of arguments      usage no CM description file specified
76  fi  fi
77    
78  rare=XYZ_XXX_0123  rare=XYZ_XXX_0123

Legend:
Removed from v.1743  
changed lines
  Added in v.1744

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