[Debian-NP-Commits] r216 - people/vagrant/simple-cdd

Vagrant Cascadian debian-np-devel@lists.alioth.debian.org
Thu, 18 Nov 2004 23:12:04 -0700


Author: vagrant-guest
Date: Thu Nov 18 23:11:49 2004
New Revision: 216

Modified:
   people/vagrant/simple-cdd/CONF.sh
   people/vagrant/simple-cdd/build-simple-cdd
Log:
modify debpartial-mirror.conf on the fly so it uses the mirror and task file from CONF.sh, also add trailing slashes to a few variables...


Modified: people/vagrant/simple-cdd/CONF.sh
==============================================================================
--- people/vagrant/simple-cdd/CONF.sh	(original)
+++ people/vagrant/simple-cdd/CONF.sh	Thu Nov 18 23:11:49 2004
@@ -289,10 +289,10 @@
 # path to simple-cdd stuff
 simple_cdd_path="$HOME/nobackup/simple-cdd"
 
-export MIRROR=$simple_cdd_path/mirror
-export TDIR=$simple_cdd_path/tmp
-export OUT=$simple_cdd_path/images
-export APTTMP=$simple_cdd_path/tmp/apt
+export MIRROR=$simple_cdd_path/mirror/
+export TDIR=$simple_cdd_path/tmp/
+export OUT=$simple_cdd_path/images/
+export APTTMP=$simple_cdd_path/tmp/apt/
 export CONTRIB=0
 export MAXCDS=1
 # TASK should point to same file as include-task in debpartial-mirror.conf

Modified: people/vagrant/simple-cdd/build-simple-cdd
==============================================================================
--- people/vagrant/simple-cdd/build-simple-cdd	(original)
+++ people/vagrant/simple-cdd/build-simple-cdd	Thu Nov 18 23:11:49 2004
@@ -36,6 +36,10 @@
 
 sort -u $TASK.cache >> $TASK
 
+debpartial_conf=debpartial-mirror.conf
+cp -f $debpartial_conf $debpartial_conf.bak
+perl -pi -e"s,local_directory=.*,local_directory=$MIRROR,g" $debpartial_conf
+perl -pi -e"s,include-task=.*,include-task=$TASK,g" $debpartial_conf
 # generate the mirror
 # patched debpartial-mirror for cleaner output...
 http_proxy=http://localhost:3128 ./patched-debpartial-mirror -c debpartial-mirror.conf