Module Name:    src
Committed By:   mrg
Date:           Thu Jul 11 08:51:09 UTC 2013

Modified Files:
        src/libexec/httpd: Makefile

Log Message:
add a target to export a bozohttpd distfile.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/libexec/httpd/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/httpd/Makefile
diff -u src/libexec/httpd/Makefile:1.13 src/libexec/httpd/Makefile:1.14
--- src/libexec/httpd/Makefile:1.13	Thu Jul 11 08:32:39 2013
+++ src/libexec/httpd/Makefile	Thu Jul 11 08:51:09 2013
@@ -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 @@ bozohttpd.8.txt: bozohttpd.8
 
 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>

Reply via email to