/[escript]/release/3.1/bin/run-escript
ViewVC logotype

Diff of /release/3.1/bin/run-escript

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

revision 2985 by jfenwick, Thu Mar 11 05:18:19 2010 UTC revision 2986 by jfenwick, Fri Mar 12 04:51:44 2010 UTC
# Line 58  else Line 58  else
58  fi  fi
59  ##### End finding ESCRIPT_ROOT  ########  ##### End finding ESCRIPT_ROOT  ########
60    
61  if [ ! -r $ESCRIPT_ROOT/lib/buildvars ]; then  
     echo "Error! Unable to read escript build information. Exiting."  
     exit 1  
 fi  
62    
63  PYTHON_MPI_NULL="$ESCRIPT_ROOT/lib/pythonMPI"  PYTHON_MPI_NULL="$ESCRIPT_ROOT/lib/pythonMPI"
64  PYTHON_MPI_REDIRECT="$ESCRIPT_ROOT/lib/pythonMPIredirect"  PYTHON_MPI_REDIRECT="$ESCRIPT_ROOT/lib/pythonMPIredirect"
# Line 113  fi Line 110  fi
110  # Avoid bug in hybrid runs with MPT MPI  # Avoid bug in hybrid runs with MPT MPI
111    
112    
113    
114  # Parse the command-line options  # Parse the command-line options
115  # option e should not be followed by a :  # option e should not be followed by a :
116  while getopts 'bn:p:t:f:h:ecVviox' option  while getopts 'bn:p:t:f:h:ecVviox' option
# Line 128  do Line 126  do
126          ;;          ;;
127        "f")  ESCRIPT_HOSTFILE=$OPTARG        "f")  ESCRIPT_HOSTFILE=$OPTARG
128          ;;          ;;
129        "c")  cat $ESCRIPT_ROOT/lib/buildvars        "c")  if [ ! -r $ESCRIPT_ROOT/lib/buildvars ]; then
130                    echo "Error! Unable to read escript build information. Exiting."
131                    exit 1
132            fi
133            cat $ESCRIPT_ROOT/lib/buildvars
134          exit 0          exit 0
135          ;;          ;;
136        "V")  echo "escript-3.1(build "`grep svn_revision $ESCRIPT_ROOT/lib/buildvars |cut -d= -f2`")"        "V")  if [ ! -r $ESCRIPT_ROOT/lib/buildvars ]; then
137                    echo "Error! Unable to read escript build information. Exiting."
138                    exit 1
139            fi
140            echo "escript-3.1(build "`grep svn_revision $ESCRIPT_ROOT/lib/buildvars |cut -d= -f2`")"
141          exit 0          exit 0
142          ;;          ;;
143        "h")  echo "$HELPTEXT"        "h")  echo "$HELPTEXT"
# Line 160  do Line 166  do
166          ;;          ;;
167      esac      esac
168  done  done
169    
170    if [ ! -r $ESCRIPT_ROOT/lib/buildvars ]; then
171        echo "Error! Unable to read escript build information. Exiting."
172        exit 1
173    fi
174    
175  shift `expr $OPTIND - 1`  shift `expr $OPTIND - 1`
176  #==============================================  #==============================================
177  #  #

Legend:
Removed from v.2985  
changed lines
  Added in v.2986

  ViewVC Help
Powered by ViewVC 1.1.26