diff options
author | seb <seb@pkgsrc.org> | 2004-02-14 18:29:17 +0000 |
---|---|---|
committer | seb <seb@pkgsrc.org> | 2004-02-14 18:29:17 +0000 |
commit | daa975015f86afbd19bad1b3495a7027d5b61aa1 (patch) | |
tree | 80237ab1a2511dd075326b8e349ffee7885cc7fd | |
parent | 00ae33926279431faee5ade8502ad4fc60ba3689 (diff) | |
download | pkgsrc-daa975015f86afbd19bad1b3495a7027d5b61aa1.tar.gz |
Use relative to ${WRKSRC} pathnames in do-gnu-missing-override target
by cd'ing into it. Also symlink the missing script instead of copying it.
-rw-r--r-- | mk/bsd.pkg.mk | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index ed87b852961..5793363acad 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1404 2004/02/14 17:18:49 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1405 2004/02/14 18:29:17 seb Exp $ # # This file is in the public domain. # @@ -2483,11 +2483,10 @@ _CONFIGURE_POSTREQ+= do-gnu-missing-override .PHONY: do-gnu-missing-override do-gnu-missing-override: . for file in ${GNU_MISSING_OVERRIDE} - ${_PKG_SILENT}${_PKG_DEBUG} \ - if [ -f ${WRKSRC}/${file} ]; then \ - ${RM} -f ${WRKSRC}/${file}; \ - ${CP} ${_PKGSRCDIR}/mk/gnu-config/missing ${WRKSRC}/${file}; \ - ${CHMOD} +x ${WRKSRC}/${file}; \ + ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \ + if [ -f ${file} ]; then \ + ${RM} -f ${file}; \ + ${LN} -s ${_PKGSRCDIR}/mk/gnu-config/missing ${file}; \ fi . endfor .endif |