Skip to content

Commit

Permalink
Start work on updating only modified files
Browse files Browse the repository at this point in the history
  • Loading branch information
DDRBoxman committed Feb 21, 2012
1 parent e8fb6c4 commit 2b8ae84
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion process_assets
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,21 @@ function processImage {
$inkscape -d 120 -e $2/res/drawable-ldpi/${file/.svg}.png $1 >& /dev/null
}

timestamp="201002211200.00"

tempfile=mktemp
trap "rm -f $tempfile" SIGINT SIGTERM
touch -t $timestamp $tempfile

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

for f in $(find $1 -name *.svg -type f);
for f in $(find $1 -name *.svg -type f -newer $tempfile);
do
if [[ "$f" == *.9.svg* ]]; then
$DIR/gen9patch.py $f $2
else
processImage $f $2
fi
done

rm -f $tempfile

0 comments on commit 2b8ae84

Please sign in to comment.