pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Use relative to ${WRKSRC} pathnames in do-gnu-missi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e7edee63e694
branches:  trunk
changeset: 468527:e7edee63e694
user:      seb <seb%pkgsrc.org@localhost>
date:      Sat Feb 14 18:29:17 2004 +0000

description:
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.

diffstat:

 mk/bsd.pkg.mk |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (25 lines):

diff -r 7e93ef1a00b7 -r e7edee63e694 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Sat Feb 14 18:28:48 2004 +0000
+++ b/mk/bsd.pkg.mk     Sat Feb 14 18:29:17 2004 +0000
@@ -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 @@
 .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



Home | Main Index | Thread Index | Old Index