81 |
die "smagefile '${SMAGESCRIPTSDIR}/${SMAGEFILE}' not found." |
die "smagefile '${SMAGESCRIPTSDIR}/${SMAGEFILE}' not found." |
82 |
fi |
fi |
83 |
|
|
84 |
|
# don't want to run any exported post/preinstall or post/preremove |
85 |
|
# functions of the smage here because they will be exported globally |
86 |
|
# and honored by every package which does not override these function. |
87 |
|
# the final package (the smage itself) will not be installed via this script, |
88 |
|
# so these functions can be safely ignored. |
89 |
|
for func in {pre,post}{install,remove} |
90 |
|
do |
91 |
|
if [[ $(typeset -f ${func}) ]] |
92 |
|
then |
93 |
|
unset "${func}" |
94 |
|
fi |
95 |
|
done |
96 |
|
|
97 |
# create build info dir |
# create build info dir |
98 |
install -d ${BUILDSERVER_CACHE_DIR}/build |
install -d ${BUILDSERVER_CACHE_DIR}/build |
99 |
|
|