diff options
author | agc <agc@pkgsrc.org> | 1999-07-28 10:07:55 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1999-07-28 10:07:55 +0000 |
commit | 5bbe8f7b3d941ff465be4b91b5bff427a6b2345f (patch) | |
tree | a4945116ea0cc305a92f9240926424aa49be88f3 /mk | |
parent | 858be9be0eccb77f9297ee41f52f4746de553bf2 (diff) | |
download | pkgsrc-5bbe8f7b3d941ff465be4b91b5bff427a6b2345f.tar.gz |
Make "make readme" work on Solaris - Solaris's sed(1) can be a pain
at times.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 1043b3c42a1..98567a43cc7 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.305 1999/07/27 15:01:30 agc Exp $ +# $NetBSD: bsd.pkg.mk,v 1.306 1999/07/28 10:07:55 agc Exp $ # # This file is in the public domain. # @@ -2125,23 +2125,22 @@ README.html: .PRECIOUS @${MAKE} binpkg-list >> $@.tmp4 @[ -s $@.tmp4 ] || ${ECHO} "<I>(no precompiled binaries available)</I>" >> $@.tmp4 @${SED} -e 's|%%PORT%%|'"`${MAKE} package-path | ${HTMLIFY}`"'|g' \ - -e '/%%PKG%%/r$@.tmp3' \ + -e '/%%PKG%%/r $@.tmp3' \ -e '/%%PKG%%/d' \ ${SED_LICENSE_EXPR} \ ${SED_HOMEPAGE_EXPR} \ - -e '/%%COMMENT%%/r${PKGDIR}/COMMENT' \ + -e '/%%COMMENT%%/r ${PKGDIR}/COMMENT' \ -e '/%%COMMENT%%/d' \ - -e '/%%BUILD_DEPENDS%%/r$@.tmp1' \ + -e '/%%BUILD_DEPENDS%%/r $@.tmp1' \ -e '/%%BUILD_DEPENDS%%/d' \ - -e '/%%RUN_DEPENDS%%/r$@.tmp2' \ + -e '/%%RUN_DEPENDS%%/r $@.tmp2' \ -e '/%%RUN_DEPENDS%%/d' \ - -e '/%%BIN_PKGS%%/r$@.tmp4' \ + -e '/%%BIN_PKGS%%/r $@.tmp4' \ -e '/%%BIN_PKGS%%/d' \ ${README_NAME} >> $@.tmp - @if ! cmp -s $@.tmp $@; then \ - ${ECHO_MSG} "===> Creating README.html for ${_THISDIR_}${PKGNAME}"; \ - ${MV} -f $@.tmp $@; \ - fi + @cmp -s $@.tmp $@ || \ + (${ECHO_MSG} "===> Creating README.html for ${_THISDIR_}${PKGNAME}"; \ + ${MV} -f $@.tmp $@) @${RM} -f $@.tmp $@.tmp1 $@.tmp2 $@.tmp3 $@.tmp4 $@.tmp5 .if !target(show-pkgtools-version) |