From 0a35f97db71f35db71da297616edf46595b3714c Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sat, 5 Oct 2019 22:31:24 +0200 Subject: [PATCH] Makefile.linux: validate version --- miniupnpd/Makefile.linux | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/miniupnpd/Makefile.linux b/miniupnpd/Makefile.linux index 7ce7369..300395a 100644 --- a/miniupnpd/Makefile.linux +++ b/miniupnpd/Makefile.linux @@ -240,7 +240,13 @@ else sed -i -e "s/^uuid=[-0-9a-f]*/uuid=`($(STAGING_DIR_HOST)/bin/genuuid||$(STAGING_DIR_HOST)/bin/uuidgen||$(STAGING_DIR_HOST)/bin/uuid) 2>/dev/null`/" miniupnpd.conf endif -check: validateupnppermissions validategetifaddr validatessdppktgen +check: validateupnppermissions validategetifaddr validatessdppktgen \ + validateversion + +validateversion: miniupnpd VERSION + ./miniupnpd --version + [ "`./miniupnpd --version | head -1 | cut -d' ' -f-2`" = "miniupnpd `cat VERSION`" ] + touch $@ validateupnppermissions: testupnppermissions testupnppermissions.sh ./testupnppermissions.sh