|
@@ -15,10 +15,10 @@ _maybe() {
|
15
|
15
|
|
16
|
16
|
check_env() {
|
17
|
17
|
#
|
18
|
|
- # Check that environment variables have been set properly
|
|
18
|
+ # Check that critical variables are set correctly
|
19
|
19
|
#
|
20
|
|
- PREFIX="$(readlink -m "$PREFIX")"
|
21
|
|
- test -d "$PREFIX" || die "PREFIX points to non-existent directory: $PREFIX"
|
|
20
|
+ test -n "$destdir" || die "could not determine DESTDIR"
|
|
21
|
+ test -d "$destdir" || die "DESTDIR: no such directory: $destdir"
|
22
|
22
|
}
|
23
|
23
|
|
24
|
24
|
deploy_item() {
|
|
@@ -92,9 +92,9 @@ install() {
|
92
|
92
|
#
|
93
|
93
|
# Install product
|
94
|
94
|
#
|
95
|
|
- check_env
|
96
|
95
|
local dst group mode src
|
97
|
96
|
local destdir=$(get_destdir)
|
|
97
|
+ check_env
|
98
|
98
|
ini values "lists:group" \
|
99
|
99
|
| while read group;
|
100
|
100
|
do
|
|
@@ -114,9 +114,9 @@ uninstall() {
|
114
|
114
|
#
|
115
|
115
|
# Uninstall product
|
116
|
116
|
#
|
117
|
|
- check_env
|
118
|
117
|
local dst group src
|
119
|
118
|
local destdir=$(get_destdir)
|
|
119
|
+ check_env
|
120
|
120
|
ini values "lists:group" \
|
121
|
121
|
| while read group;
|
122
|
122
|
do
|