Author: nd-guest
Date: 2007-10-24 13:34:40 +0000 (Wed, 24 Oct 2007)
New Revision: 1243

Modified:
   packages/debian-gis/build-gis-live
Log:
Don't copy .svn dirs into the config space


Modified: packages/debian-gis/build-gis-live
===================================================================
--- packages/debian-gis/build-gis-live  2007-10-24 08:06:35 UTC (rev 1242)
+++ packages/debian-gis/build-gis-live  2007-10-24 13:34:40 UTC (rev 1243)
@@ -127,19 +127,20 @@
 if [ -d "$package_list_dir" ]; then
     for list in $(ls "$package_list_dir"); do
         cp $package_list_dir/$list config/chroot_local-packageslists
-        echo cp $package_list_dir/$list config/chroot_local-packageslists
     done
 fi
 
 # copy misc files 
 if [ -d "$misc_files_dir" ]; then
-    for file in $(ls "$misc_files_dir"); do
-        # copy recursive by default
-        cp -v -r $misc_files_dir/$file config/chroot_local-includes
+    ( cd "$misc_files_dir" && find . ! \( -type d -a -name ".svn" -prune \) ) 
| while read file; do
+        if [ -d "$misc_files_dir/$file" ]; then
+            mkdir -p config/chroot_local-includes/$file
+        elif [ -f "$misc_files_dir/$file" ]; then
+            cp -v $misc_files_dir/$file config/chroot_local-includes/$file
+        fi            
     done
 fi
 
-
 # prepare chroot
 if $SUDO /usr/bin/lh_bootstrap >> $logfile 2>&1; then
     msg_info "bootstrap succeeded."


_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel

Reply via email to