Symbian content package uses now packed anis and fonts
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3088 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -648,14 +648,42 @@ uqm_create_symbian_content_package() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Creating content package..."
|
local ANIFILE ANIFILES DNAME ESC_DNAME FONTDIR FONTDIRS FONTFILES
|
||||||
|
|
||||||
|
echo "Building temporary content directory..."
|
||||||
cd content
|
cd content
|
||||||
echo "Building file list..."
|
find . -type f -not -path '*/CVS*' -not -path '*/.svn*' -not -path './addons*' -not -name "version" -not -name '*.png' -not -name '*.ani' -not -name '*.sml' -not -name '*.med' -not -name '*.mid' -not -name '*.big' >../content.lst
|
||||||
find . -type f -not -path '*/CVS*' -not -path '*/.svn*' -not -path './addons*' -not -name "version" >../content.lst
|
tar cf ../tmp1.tar -T ../content.lst
|
||||||
echo "Zipping..."
|
rm ../content.lst
|
||||||
zip -q ../content.uqm -r . -i@../content.lst
|
mkdir ../tmpcontent
|
||||||
|
cd ../tmpcontent
|
||||||
|
tar xf ../tmp1.tar
|
||||||
|
rm ../tmp1.tar
|
||||||
|
cd ../content
|
||||||
|
|
||||||
|
echo "Packing ani files..."
|
||||||
|
ANIFILES=`find . -regex ".*\(sml\|med\|mid\|big\|ani\)$"`
|
||||||
|
for ANIFILE in $ANIFILES; do
|
||||||
|
DNAME=`dirname $ANIFILE`/
|
||||||
|
ESC_DNAME=`echo $DNAME|sed "s/\//\\\\\\\\\//g"`
|
||||||
|
mkdirhier ../tmpcontent/$DNAME 0755
|
||||||
|
zip -q -j -0 ../tmpcontent/$ANIFILE $ANIFILE `cat $ANIFILE|cut -d " " -f 1|sed s/^/$ESC_DNAME/`
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Packing font files..."
|
||||||
|
FONTDIRS=`find . -name '*.fon'`
|
||||||
|
for FONTDIR in $FONTDIRS; do
|
||||||
|
FONTFILES=`find $FONTDIR -name '*.png'|sort -t. +2.4 -n`
|
||||||
|
zip -q -j -0 ../tmpcontent/$FONTDIR $FONTFILES
|
||||||
|
done
|
||||||
|
|
||||||
|
cd ../tmpcontent
|
||||||
|
echo "Building content package..."
|
||||||
|
zip -q -r ../content.uqm .
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
rm content.lst
|
echo "Removing temporary content directory..."
|
||||||
|
rm -rf tmpcontent
|
||||||
}
|
}
|
||||||
|
|
||||||
uqm_clean() {
|
uqm_clean() {
|
||||||
|
|||||||
Reference in New Issue
Block a user