aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAndré Erdmann <dywi@mailerd.de>2014-02-21 19:36:59 +0100
committerAndré Erdmann <dywi@mailerd.de>2014-02-21 19:36:59 +0100
commitf0146a090205535a8be28b552a198e36e74408e7 (patch)
tree4b0a673e639c95f9674af0e6ff9b8f7e5bfd97cf /bin
parentroverlay/setupscript/runtime: minor cleanup (diff)
downloadR_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-xbin/install/roverlay-query-config13
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__