/[ascend]/trunk/ascend-config.in
ViewVC logotype

Diff of /trunk/ascend-config.in

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

revision 692 by johnpye, Thu Jun 22 02:45:47 2006 UTC revision 721 by johnpye, Mon Jul 3 06:22:42 2006 UTC
# Line 26  LIB="@INSTALL_LIB@" Line 26  LIB="@INSTALL_LIB@"
26  BIN="@INSTALL_BIN@"  BIN="@INSTALL_BIN@"
27  INCLUDE="@INSTALL_INCLUDE@"  INCLUDE="@INSTALL_INCLUDE@"
28  ASCDATA="@INSTALL_ASCDATA@"  ASCDATA="@INSTALL_ASCDATA@"
29    MODELS="@INSTALL_MODELS@"
30    
31  usage = "usage: %prog [--help,...]"  usage = "usage: %prog [--help,...]"
32  # the rest of this script is about returning those values in the standard way  # the rest of this script is about returning those values in the standard way
# Line 34  parser = OptionParser(usage=usage, versi Line 35  parser = OptionParser(usage=usage, versi
35  parser.add_option("--libs", action="store_true", dest="libs", help="show linker flags (for ASCEND libraries)")  parser.add_option("--libs", action="store_true", dest="libs", help="show linker flags (for ASCEND libraries)")
36  parser.add_option("--cppflags", action="store_true", dest="cppflags", help="show C pre-processor flags (for ASCEND header files)")  parser.add_option("--cppflags", action="store_true", dest="cppflags", help="show C pre-processor flags (for ASCEND header files)")
37  parser.add_option("--data", action="store_true", dest="data", help="show location of ASCEND data files")  parser.add_option("--data", action="store_true", dest="data", help="show location of ASCEND data files")
38    parser.add_option("--models", action="store_true", dest="models", help="show location of ASCEND model library")
39    
40  (options, args) = parser.parse_args()  (options, args) = parser.parse_args()
41    
# Line 57  if options.data: Line 59  if options.data:
59      print ASCDATA      print ASCDATA
60      ok = True      ok = True
61    
62    if options.models:
63        print MODELS
64        ok = True
65    
66  if not ok:  if not ok:
67      sys.stderr.write("invalid option (use --help for more info)\n")      sys.stderr.write("invalid option '%s' (use --help for more info)\n" % args)
68      sys.exit(1)      sys.exit(1)

Legend:
Removed from v.692  
changed lines
  Added in v.721

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22