mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 07:19:48 +00:00
added --zip flag to splittree,
to make zip files instead of moving the tree parts somewhere else
This commit is contained in:
parent
42d4d753b1
commit
c4e66b5713
@ -23,16 +23,21 @@ dirs_junk='scenario-test.cfg convert.pl README man'
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user