summaryrefslogtreecommitdiff
path: root/web/bin/headfix.pl
diff options
context:
space:
mode:
Diffstat (limited to 'web/bin/headfix.pl')
-rwxr-xr-xweb/bin/headfix.pl15
1 files changed, 0 insertions, 15 deletions
diff --git a/web/bin/headfix.pl b/web/bin/headfix.pl
deleted file mode 100755
index 7c0ef90..0000000
--- a/web/bin/headfix.pl
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/sepp/bin/perl-5.8.8
-undef $/; #slurp alll
-$_ = <>;
-while (s/<page[\s\n\r]+(\S+)\s*=\s*(?:"([^"]+)"|([^"\s>]+))/<page/si){
- chomp($VAL{uc($1)}= $2 ? $2: $3);
-}
-
-if ($VAL{TYPE} eq 'lone') {
- $sub="_$VAL{TYPE}";
-}
-
-s|<page[\s\n\r]*/?>|#include <inc/template${sub}.inc> PAGE="$VAL{PAGE}" AUTHOR="$VAL{AUTHOR}" TYPE="$VAL{TYPE}"\n|si;
-
-print;
-