--- /dev/null
+#
+# This script reassembles a split configuration file back into a cf.data.pre
+# file.
+
+BEGIN { dir = SRCDIR "conf/"; }
+/^NAME: / {
+ tag = $2;
+ file=dir tag ".txt";
+ $0 = "FILE_NOT_FOUND";
+ getline < file;
+ if (/^FILE_NOT_FOUND/) {
+ print "ERROR: '" file "' not found!" > "/dev/stderr";
+ exit 1;
+ }
+ print;
+ while (getline < file) {
+ print;
+ }
+ next;
+}
+{print}
# This mess is designed to parse the squid config template file
# cf.data.pre and split it into separare files, one per option
#
-# Henrik Nordstrom <henrik@henriknordstrom.net½
+# Henrik Nordstrom <henrik@henriknordstrom.net>
#
-# $Id: split-cf.data.pre.pl,v 1.1 2007/08/08 07:38:33 hno Exp $
+# $Id: split-cf.data.pre.pl,v 1.2 2007/09/25 22:18:13 hno Exp $
#
# The template file is reasonably simple to parse. There's a number of