Source-Changes-HG archive

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

[src/trunk]: src/libexec/httpd add a target to export a bozohttpd distfile.



details:   https://anonhg.NetBSD.org/src/rev/719870495668
branches:  trunk
changeset: 787888:719870495668
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Jul 11 08:51:09 2013 +0000

description:
add a target to export a bozohttpd distfile.

diffstat:

 libexec/httpd/Makefile |  20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r be33adf2adb3 -r 719870495668 libexec/httpd/Makefile
--- a/libexec/httpd/Makefile    Thu Jul 11 08:32:39 2013 +0000
+++ b/libexec/httpd/Makefile    Thu Jul 11 08:51:09 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.13 2013/07/11 08:32:39 mrg Exp $
+#      $NetBSD: Makefile,v 1.14 2013/07/11 08:51:09 mrg Exp $
 #
 #      $eterna: Makefile,v 1.30 2010/07/11 00:34:27 mrg Exp $
 #
@@ -70,4 +70,22 @@
 
 CLEANFILES+=   bozohttpd.8.html bozohttpd.8.txt
 
+# Create a distfile: uses /tmp
+BASE=bozohttpd-${BOZOVER}
+TAR=${BASE}.tar
+export-distfile:
+       dir=`mktemp -d /tmp/bozo-export-XXXXXX`; \
+       cd "$${dir}" || exit; \
+       mkdir ${BASE}; \
+       ( cd ${BASE} || exit; \
+         cp -r "${.CURDIR}/." "."; \
+         find . -name .CVS | xargs rm -r; \
+       ); \
+       pax -wf ${TAR} ${BASE}; \
+       gzip -c9 ${TAR} > ${TAR}.gz; \
+       bzip2 -9 ${TAR}
+       @echo "Exported two files:"
+       @echo ${TAR}.gz
+       @echo ${TAR}.bz2
+
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index