diff options
author | André Erdmann <dywi@mailerd.de> | 2014-02-21 19:36:59 +0100 |
---|---|---|
committer | André Erdmann <dywi@mailerd.de> | 2014-02-21 19:36:59 +0100 |
commit | f0146a090205535a8be28b552a198e36e74408e7 (patch) | |
tree | 4b0a673e639c95f9674af0e6ff9b8f7e5bfd97cf /bin | |
parent | roverlay/setupscript/runtime: minor cleanup (diff) | |
download | R_overlay-f0146a090205535a8be28b552a198e36e74408e7.tar.gz R_overlay-f0146a090205535a8be28b552a198e36e74408e7.tar.bz2 R_overlay-f0146a090205535a8be28b552a198e36e74408e7.zip |
install roverlay-query-config
Helper for scripting:
>>> #!/bin/sh
>>> eval $( roverlay-query-config DISTDIR=mirror OVERLAY_DIR=overlay CACHEDIR )
>>>
>>> cd $overlay && do_sth >> ${CACHEDIR}/script.log
>>> cd $mirror && do_sth >> ${CACHEDIR}/script.log
Also capable of editing template files.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/install/roverlay-query-config | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/install/roverlay-query-config b/bin/install/roverlay-query-config new file mode 100755 index 0000000..534af71 --- /dev/null +++ b/bin/install/roverlay-query-config @@ -0,0 +1,13 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +import sys + +import roverlay.scripts.query_config + +if __name__ == '__main__': + try: + sys.exit ( roverlay.scripts.query_config.query_config_main ( True ) ) + except KeyboardInterrupt: + sys.exit ( roverlay.scripts.query_config.EX_IRUPT ) +# -- end __main__ |