summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-12 09:52:08 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-12 09:52:08 +0200
commit5f3339d8236f45f2a7074c70c0a33b1e1141d4c4 (patch)
tree42d984577c1c7ee7b645822565dce5465745c512 /Makefile
parentde222eb1663a5263afd02f4eeb38ce43749442da (diff)
downloadcqrlogo-5f3339d8236f45f2a7074c70c0a33b1e1141d4c4.tar.gz
cqrlogo-5f3339d8236f45f2a7074c70c0a33b1e1141d4c4.tar.zst
rework variable usage, real URI without referer, etc
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 365c0e9..45238e3 100644
--- a/Makefile
+++ b/Makefile
@@ -33,6 +33,11 @@ check:
$(FILE) check.png | $(GREP) 'PNG image data'
$(ZBARIMG) --raw -q check.png | $(GREP) -e '^http://$(SERVER)/$$'
+ SERVER_NAME=$(SERVER) HTTP_REFERER=https://$(SERVER)/ HTTPS=on \
+ ./cqrlogo | $(SED) '1,2d' > check.png
+ $(FILE) check.png | $(GREP) 'PNG image data'
+ $(ZBARIMG) --raw -q check.png | $(GREP) -e '^https://$(SERVER)/$$'
+
SERVER_NAME=$(SERVER) HTTP_REFERER=http://$(SERVER)/ \
QUERY_STRING='scale=0' \
./cqrlogo | $(SED) '1,2d' > \
@@ -101,7 +106,14 @@ check:
check.png
$(FILE) check.png | $(GREP) 'PNG image data'
$(ZBARIMG) --raw -q check.png | \
- $(GREP) -e '^This QR Code has been stolen from eworm.net!$$'
+ $(GREP) -e '^This QR Code has been stolen from http://eworm.net/!$$'
+
+ SERVER_NAME=eworm.net HTTP_REFERER=https://$(SERVER)/ HTTPS=on \
+ ./cqrlogo | $(SED) '1,2d' > \
+ check.png
+ $(FILE) check.png | $(GREP) 'PNG image data'
+ $(ZBARIMG) --raw -q check.png | \
+ $(GREP) -e '^This QR Code has been stolen from https://eworm.net/!$$'
clean:
$(RM) -f *.o *~ cqrlogo