diff options
| author | Paul Buetow (pluto.buetow.org) <paul@buetow.org> | 2013-09-07 17:44:24 +0200 |
|---|---|---|
| committer | Paul Buetow (pluto.buetow.org) <paul@buetow.org> | 2013-09-07 17:44:24 +0200 |
| commit | e9b840ee20c12f9b5698eb1403ce38eb18ead62f (patch) | |
| tree | 80fbd559009b4e682fb963e79d8c4e0cc8a419d8 | |
| parent | 65b3c6841f3fcddaedcef9b2ad6b46c35dd61839 (diff) | |
rename config.txt into xerl.conf
| -rw-r--r-- | Makefile | 4 | ||||
| -rwxr-xr-x | index.fpl | 4 | ||||
| -rwxr-xr-x | index.pl | 4 | ||||
| -rw-r--r-- | xerl.conf (renamed from config.txt) | 0 |
4 files changed, 7 insertions, 5 deletions
@@ -4,7 +4,7 @@ clean: stats: clean perl scripts/stats.pl replace: - for i in index.pl Xerl.pm config.txt; \ + for i in index.pl Xerl.pm xerl.conf; \ do \ sed -n "s/$(FROM)/$(INTO)/g; \ w .tmp" $$i && mv -f .tmp $$i; \ @@ -23,7 +23,7 @@ pidy: find . -name \*.pm | xargs perltidy -b find . -name \*.bak | xargs rm -f todo: - grep -R TODO . | grep -v Makefile | grep -v .svn + grep -R TODO . | grep -v Makefile | grep -v .git warn: perl index.pl 2> warnings less warnings @@ -10,7 +10,9 @@ use Socket; use Sys::Hostname; my $host = hostname(); -my $config = -e "config-$host.txt" ? "config-$host.txt" : 'config.txt'; +my $config = -e "xerldev-$host.conf" ? "xerldev-$host.conf" : ( + -e "xerl-$host.conf" ? "xerl-$host.conf" : 'config.conf' +); while (FCGI::accept >= 0) { my Xerl $xerl = Xerl->new( config => $config ); @@ -9,8 +9,8 @@ use Socket; use Sys::Hostname; my $host = hostname(); -my $config = -e "configdev-$host.txt" ? "configdev-$host.txt" : ( - -e "config-$host.txt" ? "config-$host.txt" : 'config.txt' +my $config = -e "xerldev-$host.conf" ? "xerldev-$host.conf" : ( + -e "xerl-$host.conf" ? "xerl-$host.conf" : 'config.conf' ); my Xerl $xerl = Xerl->new( config => $config ); |
