diff options
Diffstat (limited to 'mk/install/files')
-rw-r--r-- | mk/install/files | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/mk/install/files b/mk/install/files index c73c584446f..ae88d1b155d 100644 --- a/mk/install/files +++ b/mk/install/files @@ -1,6 +1,12 @@ -#!@SH@ +# $NetBSD: files,v 1.9 2006/03/15 04:52:57 jlam Exp $ +# +# Generate a +FILES script that reference counts config files that are +# required for the proper functioning of the package. # -# $NetBSD: files,v 1.8 2005/08/19 22:24:10 jlam Exp $ +case "${STAGE}" in +PRE-INSTALL|UNPACK) + ${CAT} > ./+FILES << 'EOF' +#!@SH@ # # +FILES - reference-counted configuration file management script # @@ -323,3 +329,10 @@ CHECK-REMOVE) ;; esac exit $exitcode + +EOF + ${SED} -n "/^\# FILE: /p" ${SELF} >> ./+FILES + ${CHMOD} +x ./+FILES + ;; +esac + |