Read default configuration from home directory.
authorFredrik Tolf <fredrik@dolda2000.com>
Sun, 27 Jan 2008 20:18:43 +0000 (21:18 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Sun, 27 Jan 2008 20:18:43 +0000 (21:18 +0100)
dcp-init

index 05e39fd..3babd45 100755 (executable)
--- a/dcp-init
+++ b/dcp-init
@@ -55,6 +55,11 @@ initbase() {
     mkdir "$td/control/update.d"
     cat >"$td/control/functions" <<EOF
 readconf() {
     mkdir "$td/control/update.d"
     cat >"$td/control/functions" <<EOF
 readconf() {
+    if [ -r "$HOME/.dcp-build-conf" ]; then
+        while read key val; do
+            export "CONF_\$key"="\$val"
+        done <"$HOME/.dcp-build-conf"
+    fi
     while read key val; do
         export "CONF_\$key"="\$val"
     done <control/conf
     while read key val; do
         export "CONF_\$key"="\$val"
     done <control/conf