| Version 1.9 Build 1556
|
|
Next: mktree
Up: Code management
Previous: buildchangelog
Subsections
doover
Generate a function which returns AIPS++ version information.
doover
doover generates C++ code which records version information
found in $AIPSCODE/VERSION. It is intended to be used only by the
AIPS++ makefiles (p).
The C++ code defines the following external variables
- const int aips_major_version; The AIPS++ major version number
(see avers (p)).
- const int aips_minor_version; The AIPS++ minor version number.
- const int aips_patch_version; The AIPS++ patch version number.
- const char* aips_version_date; The date on which this version was
produced in AIPS++ date format (see adate (p)).
- const char* aips_version_info; Any identifying version
information.
and it also defines the following global function which reports the version
information in a standard format:
void report_aips_version(ostream &os)
Executables can access these external variables by virtue of declarations
made in aips.h.
None.
- makefile.imp (p) uses doover to check and if necessary generate
$LIBDBGD/version.o and $LIBOPTD/version.o whenever it
builds a system object library. The version.o object modules are
dependent on the $(AIPSCODE)/VERSION file. They are not inserted
into the object library since that would cause all executables to be
rebuilt.
Status return values
0
: success
1
: initialization error
2
: VERSION file not found
Typing
void report_aips_version(ostream &os)
shows the code containing the version information derived from the current
$(AIPSCODE)/VERSION.
AIPS++ variable names (§1.2).
adate (p), AIPS++ time reporting utility.
avers (p), AIPS++ version report utility.
makefiles (p), GNU makefiles used to rebuild AIPS++.
Original: 1996/02/29 by Mark Calabretta, ATNF.
Next: mktree
Up: Code management
Previous: buildchangelog
  Contents
  Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc.,
Washington, D.C.
Return to AIPS++ Home Page
2006-10-15