1 |
commit: f0146a090205535a8be28b552a198e36e74408e7 |
2 |
Author: André Erdmann <dywi <AT> mailerd <DOT> de> |
3 |
AuthorDate: Fri Feb 21 18:36:59 2014 +0000 |
4 |
Commit: André Erdmann <dywi <AT> mailerd <DOT> de> |
5 |
CommitDate: Fri Feb 21 18:36:59 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=f0146a09 |
7 |
|
8 |
install roverlay-query-config |
9 |
|
10 |
Helper for scripting: |
11 |
|
12 |
>>> #!/bin/sh |
13 |
>>> eval $( roverlay-query-config DISTDIR=mirror OVERLAY_DIR=overlay CACHEDIR ) |
14 |
>>> |
15 |
>>> cd $overlay && do_sth >> ${CACHEDIR}/script.log |
16 |
>>> cd $mirror && do_sth >> ${CACHEDIR}/script.log |
17 |
|
18 |
Also capable of editing template files. |
19 |
|
20 |
--- |
21 |
bin/install/roverlay-query-config | 13 +++++++++++++ |
22 |
1 file changed, 13 insertions(+) |
23 |
|
24 |
diff --git a/bin/install/roverlay-query-config b/bin/install/roverlay-query-config |
25 |
new file mode 100755 |
26 |
index 0000000..534af71 |
27 |
--- /dev/null |
28 |
+++ b/bin/install/roverlay-query-config |
29 |
@@ -0,0 +1,13 @@ |
30 |
+#!/usr/bin/python |
31 |
+# -*- coding: utf-8 -*- |
32 |
+ |
33 |
+import sys |
34 |
+ |
35 |
+import roverlay.scripts.query_config |
36 |
+ |
37 |
+if __name__ == '__main__': |
38 |
+ try: |
39 |
+ sys.exit ( roverlay.scripts.query_config.query_config_main ( True ) ) |
40 |
+ except KeyboardInterrupt: |
41 |
+ sys.exit ( roverlay.scripts.query_config.EX_IRUPT ) |
42 |
+# -- end __main__ |