|
@@ -17,6 +17,7 @@ export FFOO_PATH="__SATURNIN_SHARE__/ffoo"
|
17
|
17
|
SATURNIN_LIBEXEC="__SATURNIN_LIBEXEC__"
|
18
|
18
|
export FFOO_CONFIG_PATH=$(mkinipath | tr '\n' :)
|
19
|
19
|
export FFOO_CONFIG_SUFFIX=".ini"
|
|
20
|
+export SATURNIN_VERSION="__VERSION__"
|
20
|
21
|
|
21
|
22
|
ffoo import exit
|
22
|
23
|
ffoo import core
|
|
@@ -33,9 +34,15 @@ print_help() {
|
33
|
34
|
| sed -e 's/saturnin-/ /'
|
34
|
35
|
}
|
35
|
36
|
|
|
37
|
+version_info() {
|
|
38
|
+ echo "$(basename $0) (Smart and ready desktop helper) $SATURNIN_VERSION"
|
|
39
|
+ exit $FFOO_EXIT_OK
|
|
40
|
+}
|
|
41
|
+
|
36
|
42
|
while true; do case $1 in
|
37
|
43
|
-d|--debug) export FFOO_DEBUG=true; shift ;;
|
38
|
44
|
-v|--verbose) export FFOO_VERBOSE=true; shift ;;
|
|
45
|
+ --version) version_info ;;
|
39
|
46
|
-*) usage; ;;
|
40
|
47
|
--*) usage; ;;
|
41
|
48
|
--) shift; break ;;
|