Chameleon

Chameleon Commit Details

Date:2011-09-04 10:54:27 (7 years 10 months ago)
Author:Azimutz
Commit:1501
Parents: 1500
Message:"Clean" the Themes pkg creation code a bit more.
Changes:
M/branches/azimutz/Package/package/buildpkg.sh

File differences

branches/azimutz/Package/package/buildpkg.sh
289289
290290
291291
292
293
292
293
294
295
296
297
294298
295299
296300
297301
298
302
303
299304
300305
301306
......
349354
350355
351356
352
357
353358
354359
355360
choices[$((choicescount++))]="<choice\n\tid=\"Themes\"\n\ttitle=\"Themes_title\"\n\tdescription=\"Themes_description\"\n>\n</choice>\n"
((xmlindent++))
packagesidentity="org.chameleon.themes"
artwork="${1%/*}"
themes=($( find "${artwork%/*}/artwork/themes" -type d -depth 1 -not -name '.svn' ))
#echo "work: $1" # e.g. .../trunk/sym/package
# replace "/sym/package" by "/artwork/themes" on "work" and save path in "artwork"
artwork="${1%/sym/package}/artwork/themes"
#echo "artwork: ${artwork}"
themes=($( find "${artwork}" -type d -depth 1 -not -name '.svn' ))
#echo "themes: ${themes[@]}"
for (( i = 0 ; i < ${#themes[@]} ; i++ ))
do
theme=$( echo ${themes[$i]##*/} | awk 'BEGIN{OFS=FS=""}{$1=toupper($1);print}' )
mkdir -p "${1}/${theme}/Root/"
rsync -r --exclude=.* "${themes[$i]}/" "${1}/${theme}/Root/${theme}"
# there's already a DS_store cleaner on buildpackage()
rsync -r --exclude=.svn "${themes[$i]}/" "${1}/${theme}/Root/${theme}"
# i see no need for this ??
#find "${1}/${theme}" -type f -exec chmod 644 {} \+
echo "[BUILD] ${theme}"
local packagename="${1##*/}"
local identifier=$( echo ${packagesidentity}.${packagename//_/.} | tr [:upper:] [:lower:] )
find "${1}" -name '.DS_Store' -delete
find "${1}" -name '.DS_Store' -delete #Azipkg: DS_store cleaner
local filecount=$( find "${1}/Root" | wc -l )
if [ "${3}" ]; then
local installedsize="${3}"

Archive Download the corresponding diff file

Revision: 1501