a grand renaming so that the most significant portion of the name comes first

This commit is contained in:
Dan Buch
2012-03-03 21:45:20 -05:00
parent c8b8078175
commit f4f448926d
1300 changed files with 0 additions and 234 deletions

View File

@@ -0,0 +1,32 @@
ROOT ?= $(PWD)
HTTP_PORT ?= 49438
HTTP_HOST ?= localhost
PHP_FCGI_PORT ?= 49439
serve: nginx.conf
nginx -p $(ROOT)/ -c $(ROOT)/$<
serve-php: php.ini
php-cgi -c $< -b 127.0.0.1:$(PHP_FCGI_PORT)
nginx.conf: nginx.conf.in
chmod 644 $@ ;
cat $< | \
sed -e 's@__ROOT__@$(ROOT)@g' \
-e 's@__HTTP_PORT__@$(HTTP_PORT)@g' \
-e 's@__HTTP_HOST__@$(HTTP_HOST)@g' \
-e 's@__PHP_FCGI_PORT__@$(PHP_FCGI_PORT)@g' > $@ ;
chmod 444 $@
php.ini: php.ini.in
chmod 644 $@ ;
cat $< | sed -e 's@__ROOT__@$(ROOT)@g' > $@ ;
chmod 444 $@
.PHONY: serve