Makefile.linux: validate version

This commit is contained in:
Thomas Bernard 2019-10-05 22:31:24 +02:00
parent 49d3b57441
commit 0a35f97db7
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C
1 changed files with 7 additions and 1 deletions

View File

@ -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