Created
July 1, 2014 06:16
-
-
Save monaka/c5f0cbd9a481ec64b6dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vars = DOCUMENT_ROOT GATEWAY_INTERFACE HTTP_ACCEPT HTTP_ACCEPT_CHARSET HTTP_ACCEPT_ENCODING | |
vars += HTTP_ACCEPT_LANGUAGE HTTP_CONNECTION HTTP_HOST HTTP_REFERER HTTP_USER_AGENT | |
vars += PATH QUERY_STRING REMOTE_ADDR REMOTE_HOST REMOTE_PORT REMOTE_USER REQUEST_METHOD | |
vars += REQUEST_URI SCRIPT_FILENAME SCRIPT_NAME SERVER_ADMIN SERVER_NAME SERVER_PORT | |
vars += SERVER_PROTOCOL SERVER_SOFTWARE | |
all: table_end | |
header: | |
@echo "Content-type: text/html; charset=UTF-8" | |
@echo "Pragma: no-cache" | |
@echo "Cache-Control: no-cache" | |
@echo | |
table_start: header | |
@echo "<html><head><title>Test</title></head>" | |
@echo "<body>" | |
@echo "<table nowrap>" | |
$(vars): table_start | |
@echo "<tr><th>" $@ "</th><td>" $(shell echo $$$@) "</td></tr>" | |
table_end: $(vars) | |
@echo "</table>" | |
@echo "</body>" | |
@echo "</html>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment