From 0fc89b9501a8a2161ed80710836b1c2089c47334 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 21 Jun 2016 12:05:51 +0200 Subject: [PATCH 1/1] Remove unwanted file Fix gitignore list Fix export format of config --- .gitignore | 1 + cook | 2 +- lib/export.sh | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index cad684a..405e312 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ root root.conf +lib/config.sh ihttpd-*.rpm diff --git a/cook b/cook index e501fe2..c3d1a4f 100755 --- a/cook +++ b/cook @@ -5,7 +5,7 @@ export LC_ALL=C # Extract configuration echo '#! /bin/sh -e' > lib/config.sh -cat config/*.conf | perl -pne 'undef $_ if /^#/; s/^/export /' >> lib/config.sh +cat config/*.conf | perl -pne 'if (/^#/) {undef $_;} else {s/^/export /;}' >> lib/config.sh # Source config . lib/config.sh diff --git a/lib/export.sh b/lib/export.sh index e8c65fc..40e3704 100644 --- a/lib/export.sh +++ b/lib/export.sh @@ -5,5 +5,5 @@ cat /dev/null > root.conf # Append every config parameters for i in `cat config/*.conf | perl -pne 'undef $_ if /^#/; s/=.*$//'`; do - eval echo ${i}=\$$i | tee -a root.conf + eval echo ${i}=\'\$$i\' | tee -a root.conf done -- 2.41.1