diff options
-rw-r--r-- | mk/install/deinstall | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/mk/install/deinstall b/mk/install/deinstall index cef1d019723..cb923e9460f 100644 --- a/mk/install/deinstall +++ b/mk/install/deinstall @@ -1,6 +1,6 @@ # start of deinstall # -# $NetBSD: deinstall,v 1.12 2002/08/22 08:21:31 jlam Exp $ +# $NetBSD: deinstall,v 1.13 2002/10/17 16:15:14 heinz Exp $ eval set -- ${PKG_USERS} for userset; do @@ -25,13 +25,15 @@ eval set -- ${CONF_FILES} ${SUPPORT_FILES} for file; do ALL_FILES="${ALL_FILES} \"${file}\"" done -eval set -- ${RCD_SCRIPTS} -for script; do - samplefile="${RCD_SCRIPTS_EXAMPLEDIR}/${script}" - file="${RCD_SCRIPTS_DIR}/${script}" - shift - ALL_FILES="${ALL_FILES} \"${samplefile}\" \"${file}\"" -done +if [ "${_PKG_RCD_SCRIPTS}" = "YES" ]; then + eval set -- ${RCD_SCRIPTS} + for script; do + samplefile="${RCD_SCRIPTS_EXAMPLEDIR}/${script}" + file="${RCD_SCRIPTS_DIR}/${script}" + shift + ALL_FILES="${ALL_FILES} \"${samplefile}\" \"${file}\"" + done +fi eval set -- ${CONF_FILES_PERMS} ${SUPPORT_FILES_PERMS} while [ $# -gt 0 ]; do samplefile="$1"; file="$2"; owner="$3"; group="$4"; mode="$5" |