Fixed typo.
[dcp.git] / dcp-init
index 05e39fd..38f0459 100755 (executable)
--- a/dcp-init
+++ b/dcp-init
@@ -42,7 +42,7 @@ getaptsrc() {
 }
 
 initrepo() {
-    rungit init -q --shared
+    rungit init
     mkdir "$td/control"
     touch "$td/control/conf"
     rungit add control
@@ -55,6 +55,11 @@ initbase() {
     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
@@ -109,7 +114,7 @@ initapt() {
 
 set -e
 
-cmd=(dpkg-buildpackage -b)
+cmd=(dpkg-buildpackage -b -rfakeroot)
 if [ -n "\$CONF_MAINTAINER" ]; then
     cmd=("\${cmd[@]}" "-m\$CONF_MAINTAINER")
 fi