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

Vagrant Cascadian debian-np-devel@lists.alioth.debian.org
Thu, 25 Nov 2004 20:41:00 -0700


Author: vagrant-guest
Date: Thu Nov 25 20:39:52 2004
New Revision: 254

Modified:
   people/vagrant/simple-cdd/build-simple-cdd
Log:
mention backup of extras directory, bugfix for tweaking CHOICES in template


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 25 20:39:52 2004
@@ -1,4 +1,4 @@
-#!/bin/sh
+ !/bin/sh
 
 # TODO add packages from commandline
 # TODO rename the configuration file
@@ -114,7 +114,8 @@
 make packages
 
 # make a backup of the extras directory, just in case
-tar cvzpf $simple_cdd_dir/old.extras.tgz $simple_cdd_dir/extras/
+echo "backing up $simple_cdd_dir/extras/: old.extras.tgz"
+tar cvpf $simple_cdd_dir/old.extras.tgz $simple_cdd_dir/extras/
 rm -rf $simple_cdd_dir/extras/
 
 extras_dir="$simple_cdd_dir/extras/simple-cdd"
@@ -127,8 +128,8 @@
 done
 
 # populate the choices file.
-for a in $profiles ; do
-  choices="$profiles,$choices"
+for p in $profiles ; do
+  choices="$p,$choices"
 done
 
 cat $simple_cdd_dir/simple-cdd.templates | sed s/CHOICES/$choices/g | sed -e 's/,/, /g' > $extras_dir/simple-cdd.templates