wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/utils splittree


From: Yann Dirson
Subject: [Wesnoth-cvs-commits] wesnoth/utils splittree
Date: Sun, 09 Jan 2005 17:20:22 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Yann Dirson <address@hidden>    05/01/09 21:50:19

Modified files:
        utils          : splittree 

Log message:
        added --zip flag to splittree, to make zip files instead of moving the 
tree parts somewhere else

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/utils/splittree.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: wesnoth/utils/splittree
diff -u wesnoth/utils/splittree:1.1 wesnoth/utils/splittree:1.2
--- wesnoth/utils/splittree:1.1 Tue Dec 28 07:40:46 2004
+++ wesnoth/utils/splittree     Sun Jan  9 21:50:17 2005
@@ -23,16 +23,21 @@
 
 for p in music sound httt ei sotbe tdh trow devel editor tutorial mp locales 
junk
 do
-    rm -rf $dst/wesnoth-$p
+    [ "x$dst" = "x--zip" ] || rm -rf $dst/wesnoth-$p
     eval dirs=\${dirs_$p}
     findexpr=-false
     for d in $dirs
     do
        findexpr="$findexpr -o -name $d"
     done
-    for d in $(cd $src && find $findexpr)
-    do
-       mkdir -p $dst/wesnoth-$p/$(dirname $d)
-       mv $src/$d $dst/wesnoth-$p/$(dirname $d)
-    done
+    if [ "x$dst" = "x--zip" ]
+    then
+       (cd $src && zip -Drum wesnoth-$p.zip $(find $findexpr))
+    else
+       for d in $(cd $src && find $findexpr)
+       do
+           mkdir -p $dst/wesnoth-$p/$(dirname $d)
+           mv $src/$d $dst/wesnoth-$p/$(dirname $d)
+       done
+    fi
 done




reply via email to

[Prev in Thread] Current Thread [Next in Thread]