Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: alog Up: Code management Previous: ai

Subsections



ao

AIPS++ source code checkout utility.

Synopsis

ao [
options for
co] file1 [file2 ...]

Description

ao checks out source files from the AIPS++ master RCS repository into the current directory. It is a front-end for the RCS co command.

ao assumes that you are working within a private directory tree which shadows that of the AIPS++ master source code tree, see mktree (p[*]). The filename arguments specified to ao must be simple filenames without path except that an initial RCS/ will be explicitly stripped off, as will any RCS ,v suffix. ao determines the corresponding master directory from the current working directory.

ao checks out the source file by executing $MSTRETCD/ao_master, where $AIPSMSTR is expected to be NFS mounted from the AIPS++ master host (see §1.1.4). Programmers who have an account on the AIPS++ master host, aips2.nrao.edu, may instead use a related utility, rao (p[*]), which invokes ao remotely on the master host via ssh.

Options

ao does not itself interpret any options but does recognize several which it passes to co.

-I | -l | -r# | -u#
These options are passed directly to co, check the manual page for co for an explanation. Note that no version number may be specified for the -l option, and that a -r option with revision number may not be used together with -l. All other co options are defeated.

Note that the -u option may be used to unlock a checked out file without replacement.

Notes

Diagnostics

Status return values
0: success
1: initialization error, no checkout
2: checkout failure

Examples

The command

   ao -l Foo.cc

would check out Foo.cc with an exclusive lock. Then

   ao -u Foo.cc

would remove the lock without checking the file in or deleting the working copy. The command

   ao -l RCS/*,v

would check out everything in the directory (that is, assuming that RCS is a symlink into the slave directory, all files currently in the slave directory will be checked out of the master).

Bugs

See also

The manual page for co(1), the RCS checkout command.
The unix manual page for chmod(1).
AIPS++ variable names (§1.2).
ae (p[*]), AIPS++ RCS semaphore file deletion utility.
ai (p[*]), AIPS++ code checkin utility.
alog (p[*]), AIPS++ change log reporting utility.
amv (p[*]), AIPS++ code rename utility.
au (p[*]), AIPS++ code update utility.
ax (p[*]), AIPS++ code deletion utility.
mktree (p[*]), create AIPS++ directory hierarchy.
rao (p[*]), invoke ao remotely via ssh(1).

Author

Original: 1992/04/28 by Mark Calabretta, ATNF.


next up previous contents index
Next: alog Up: Code management Previous: ai   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