summary refs log tree commit diff
path: root/noarch/post_install.sh
blob: d0b65275d89f5db09af6d8a7092bbc7872bace9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

SCRIPTS_DIR="$(dirname "$0")"

# load 'scripting' run-time support utility functions
. "${SCRIPTS_DIR}/scripting_utils"

# load 'package' run-time support utility functions
. "${SCRIPTS_DIR}/package_utils"
environment_init "$(basename "$0" ".sh")"


UNINSTALLMODE=
while [ -n "$1" ]; do
	case "$1" in
	-u) UNINSTALLMODE=1 ;;
	vendor=*) specify_vendor "${1#vendor=}" ;;
	*) break ;;
	esac
	shift
done

if [ "$UNINSTALLMODE" ]; then
	show_nls_message "**** Uninstall finished."
else
	show_nls_message "**** Install finished."
fi