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 |
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 |
|
|
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) |