|
@@ -1,16 +1,16 @@
|
1
|
1
|
#!/bin/bash
|
2
|
2
|
|
3
|
|
-. $(ffoom path) || exit 3
|
|
3
|
+. $(shellfu-get path) || exit 3
|
4
|
4
|
|
5
|
|
-ffoo import exit
|
6
|
|
-ffoo import inigrep
|
7
|
|
-ffoo import pretty
|
|
5
|
+shellfu import exit
|
|
6
|
+shellfu import inigrep
|
|
7
|
+shellfu import pretty
|
8
|
8
|
|
9
|
9
|
#
|
10
|
10
|
# =====BEGIN BUILT PART=====
|
11
|
11
|
#
|
12
|
12
|
|
13
|
|
-FFOO_INIGREP_PATH="$(
|
|
13
|
+SHELLFU_INIGREP_PATH="$(
|
14
|
14
|
inigrep__mkpath \
|
15
|
15
|
__SATCMD_CONFIG_USER__/ini.d \
|
16
|
16
|
__SATCMD_CONFIG_USER__ \
|
|
@@ -18,8 +18,8 @@ FFOO_INIGREP_PATH="$(
|
18
|
18
|
__SATCMD_SHARE__/ini.d
|
19
|
19
|
)"
|
20
|
20
|
|
21
|
|
-FFOO_PATH="__SATCMD_FFOO_DIR__"
|
22
|
|
-FFOO_PRETTY_USAGE="subcommand"
|
|
21
|
+SHELLFU_PATH="__SATCMD_SHELLFU_DIR__"
|
|
22
|
+SHELLFU_PRETTY_USAGE="subcommand"
|
23
|
23
|
SATCMD_CACHE_HOME="__SATCMD_CACHE_HOME__"
|
24
|
24
|
SATURNIN_LIBEXEC="__SATCMD_LIBEXEC__"
|
25
|
25
|
SATURNIN_LIBEXEC_PREFIX="satcmd-"
|
|
@@ -29,9 +29,9 @@ SATCMD_VERSION="__VERSION__"
|
29
|
29
|
# =====END BUILT PART=====
|
30
|
30
|
#
|
31
|
31
|
|
32
|
|
-ffoo import saturnin_meta
|
|
32
|
+shellfu import saturnin_meta
|
33
|
33
|
|
34
|
|
-export FFOO_INIGREP_PATH FFOO_PATH FFOO_PRETTY_USAGE \
|
|
34
|
+export SHELLFU_INIGREP_PATH SHELLFU_PATH SHELLFU_PRETTY_USAGE \
|
35
|
35
|
SATCMD_VERSION SATCMD_CACHE_HOME
|
36
|
36
|
|
37
|
37
|
usage() {
|
|
@@ -42,12 +42,12 @@ usage() {
|
42
|
42
|
|
43
|
43
|
version_info() {
|
44
|
44
|
echo "$(basename "$0") (Spirit of your toolbox) $SATCMD_VERSION"
|
45
|
|
- exit "$FFOO_EXIT_OK"
|
|
45
|
+ exit "$SHELLFU_EXIT_OK"
|
46
|
46
|
}
|
47
|
47
|
|
48
|
48
|
while true; do case $1 in
|
49
|
|
- -d|--debug) export FFOO_DEBUG=true; shift ;;
|
50
|
|
- -v|--verbose) export FFOO_VERBOSE=true; shift ;;
|
|
49
|
+ -d|--debug) export SHELLFU_DEBUG=true; shift ;;
|
|
50
|
+ -v|--verbose) export SHELLFU_VERBOSE=true; shift ;;
|
51
|
51
|
--version) version_info ;;
|
52
|
52
|
--version-semver) echo "$SATCMD_VERSION"; exit ;;
|
53
|
53
|
-*) usage; ;;
|
|
@@ -57,7 +57,7 @@ while true; do case $1 in
|
57
|
57
|
*) break; ;;
|
58
|
58
|
esac done
|
59
|
59
|
|
60
|
|
-debug -v FFOO_PATH SATURNIN_LIBEXEC FFOO_INIGREP_PATH
|
|
60
|
+debug -v SHELLFU_PATH SATURNIN_LIBEXEC SHELLFU_INIGREP_PATH
|
61
|
61
|
debug "\$*='$*'"
|
62
|
62
|
|
63
|
63
|
export SATURNIN_SUBCOMMAND="$1"
|
|
@@ -67,8 +67,8 @@ case "$SATURNIN_SUBCOMMAND" in
|
67
|
67
|
conf) inigrep "$@" ;;
|
68
|
68
|
help) saturnin_help ;;
|
69
|
69
|
_ls_subcommands) saturnin_lssc ;;
|
70
|
|
- _lsfun) ffoom lsfun ;;
|
71
|
|
- _lsmod) ffoom lsmod ;;
|
|
70
|
+ _lsfun) shellfu-get lsfun ;;
|
|
71
|
+ _lsmod) shellfu-get lsmod ;;
|
72
|
72
|
_ffrun) ffrun "$@" ;;
|
73
|
73
|
*) saturnin_runsc "$@" ;;
|
74
|
74
|
esac
|