Browse Source

Add new tool: ffoo ini wrapper

To simplify extraction of eecc config outside ffoo-enabled scripts
(e.g. from inside *rc file).
Alois Mahdal 10 years ago
parent
commit
894e09a91e
2 changed files with 18 additions and 0 deletions
  1. 17
    0
      bin/eeini.in
  2. 1
    0
      setup/mk.sh

+ 17
- 0
bin/eeini.in View File

@@ -0,0 +1,17 @@
1
+#!/bin/bash
2
+
3
+. <(ffoom init)
4
+FFOO_INI_PATH="__FFOO_INI_PATH__"
5
+
6
+ffoo import ini
7
+
8
+while true; do case $1 in
9
+    -d|--debug)     FFOO_DEBUG=true; shift      ;;
10
+    -v|--verbose)   FFOO_VERBOSE=true; shift    ;;
11
+    --)             shift; break                ;;
12
+    *)              break;                      ;;
13
+esac done
14
+
15
+debug "\$*=$*"
16
+
17
+iniread "$@"

+ 1
- 0
setup/mk.sh View File

@@ -13,6 +13,7 @@ list_of_bins() {
13 13
     echo bin/eeabrt
14 14
     echo bin/eeget
15 15
     echo bin/eeiam
16
+    echo bin/eeini
16 17
     echo bin/eeln
17 18
     echo bin/eemk
18 19
     echo bin/eepush