diff options
author | Christian Hesse <mail@eworm.de> | 2013-07-12 09:52:08 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-07-12 09:52:08 +0200 |
commit | 5f3339d8236f45f2a7074c70c0a33b1e1141d4c4 (patch) | |
tree | 42d984577c1c7ee7b645822565dce5465745c512 /Makefile | |
parent | de222eb1663a5263afd02f4eeb38ce43749442da (diff) | |
download | cqrlogo-5f3339d8236f45f2a7074c70c0a33b1e1141d4c4.tar.gz cqrlogo-5f3339d8236f45f2a7074c70c0a33b1e1141d4c4.tar.zst |
rework variable usage, real URI without referer, etc
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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 |