summaryrefslogtreecommitdiff
path: root/mk/plist
diff options
context:
space:
mode:
authorjoerg <joerg>2009-06-14 17:12:03 +0000
committerjoerg <joerg>2009-06-14 17:12:03 +0000
commitf5c6fa8867df87af3924b7b0d1aeec29ec0b1af6 (patch)
treeaaca6b5d742d2a3b4b8fae1d7a67b0d4937df6b0 /mk/plist
parent1bf5a0879ad3282dc6eb49e8d3cbefe6c347a040 (diff)
downloadpkgsrc-f5c6fa8867df87af3924b7b0d1aeec29ec0b1af6.tar.gz
Don't generate @dirrm lines in print-PLIST, switch @exec mkdir lines to
@pkgdir.
Diffstat (limited to 'mk/plist')
-rw-r--r--mk/plist/print-plist.mk9
1 files changed, 2 insertions, 7 deletions
diff --git a/mk/plist/print-plist.mk b/mk/plist/print-plist.mk
index a6604866746..51b15ffa49f 100644
--- a/mk/plist/print-plist.mk
+++ b/mk/plist/print-plist.mk
@@ -1,9 +1,8 @@
-# $NetBSD: print-plist.mk,v 1.17 2009/03/17 22:13:36 rillig Exp $
+# $NetBSD: print-plist.mk,v 1.18 2009/06/14 17:12:03 joerg Exp $
###
### Automatic PLIST generation
### - files & symlinks first
-### - @dirrm statements last
### - empty directories are handled properly
### - dirs from mtree files are excluded
### - substitute for platform or package specifics substrings
@@ -33,7 +32,6 @@ _PRINT_PLIST_AWK_SUBST+= \
gsub(/${PKGNAME_NOREV}/, "$${PKGNAME}"); \
gsub(/${PKGVERSION:S/./\./g:C/nb[0-9]*$$//}/, "$${PKGVERSION}");\
gsub(/^${PKGLOCALEDIR}\/locale/, "share/locale"); \
- gsub(/^@dirrm ${PKGLOCALEDIR}\/locale/, "@dirrm share/locale"); \
gsub("^${PKGINFODIR}/", "info/"); \
gsub("^${PKGMANDIR}/", "man/");
_PRINT_PLIST_AWK_SUBST+=}
@@ -189,13 +187,10 @@ print-PLIST:
${_PRINT_PLIST_COMMON_DIRS}'` ; \
do \
if [ `${LS} -la ${DESTDIR}${PREFIX}/$$i | ${WC} -l` = 3 ]; then \
- ${ECHO} @exec \$${MKDIR} %D/$$i | ${AWK} ' \
+ ${ECHO} @pkgdir $$i | ${AWK} ' \
${PRINT_PLIST_AWK} \
{ print $$0; }' ; \
fi ; \
- ${ECHO} @dirrm $$i | ${AWK} ' \
- ${PRINT_PLIST_AWK} \
- { print $$0; }' ; \
done \
| ${AWK} '${_PRINT_PLIST_AWK_SUBST} { print $$0; }'
.endif # target(print-PLIST)