From 13fd5669a4d1e89517172018f075e7827389bda2 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Fri, 17 Apr 2009 15:56:37 +0200 Subject: [PATCH] preprocessor: added support for comments in the servers list --- root/preprocessor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/preprocessor.sh b/root/preprocessor.sh index 41b013c..363f79c 100755 --- a/root/preprocessor.sh +++ b/root/preprocessor.sh @@ -13,7 +13,7 @@ for x in $DIR/*.in; do echo "s,@@$name@@,$value,g;" done -sed -e '/^#/d;' -e '/^[ \t]*$/d;' -e 's/=/ /' "$DIR/servers.txt" | +sed -e '/^#/d;' -e 's,[ \t]*#.*,,' -e '/^[ \t]*$/d;' -e 's/=/ /' "$DIR/servers.txt" | while read name value; do echo "s,@@$name@@,$value,g;" done