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/c95001114a5f
branches:  trunk
changeset: 981113:c95001114a5f
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 b4fab009fd4e -r c95001114a5f 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