Source-Changes-HG archive

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

[src/trunk]: src/libexec/httpd give BOZOVER a default so exporting a distfile...



details:   https://anonhg.NetBSD.org/src/rev/38803f967239
branches:  trunk
changeset: 953169:38803f967239
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Feb 28 02:39:15 2021 +0000

description:
give BOZOVER a default so exporting a distfile is easy.

diffstat:

 libexec/httpd/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 8b4433b3242e -r 38803f967239 libexec/httpd/Makefile
--- a/libexec/httpd/Makefile    Sun Feb 28 02:37:04 2021 +0000
+++ b/libexec/httpd/Makefile    Sun Feb 28 02:39:15 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.29 2020/07/11 08:10:52 jruoho Exp $
+#      $NetBSD: Makefile,v 1.30 2021/02/28 02:39:15 mrg Exp $
 #
 #      $eterna: Makefile,v 1.30 2010/07/11 00:34:27 mrg Exp $
 #
@@ -81,6 +81,12 @@
 check:
        cd ${.CURDIR}/testsuite && ${MAKE} check
 
+.if empty(BOZOVER)
+BOZOVER!=      sed -n \
+                   -e s/\"$$// -e \
+                   's/\#define[        ]*SERVER_SOFTWARE[      ]*\"bozohttpd\///p'  bozohttpd.c
+.endif
+
 # Create a distfile: uses /tmp
 BASE=bozohttpd-${BOZOVER}
 TAR=${BASE}.tar



Home | Main Index | Thread Index | Old Index