summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-17 02:31:03 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-17 02:31:31 +0200
commita2059b5cfaa600402dfbec5d63099fd724998e9f (patch)
treef2565560aebd6e090eb581ad751a1c2adba9ad0a
parent9c44782c5eab5635ca6adf4717409bf2ffb6c694 (diff)
downloadsowatch-a2059b5cfaa600402dfbec5d63099fd724998e9f.tar.gz
sowatch-a2059b5cfaa600402dfbec5d63099fd724998e9f.zip
cleaning up old file
-rwxr-xr-xnekowatchlet/original-resources/makeatlas.sh6
-rw-r--r--nekowatchlet/res/makeatlas.sh32
2 files changed, 3 insertions, 35 deletions
diff --git a/nekowatchlet/original-resources/makeatlas.sh b/nekowatchlet/original-resources/makeatlas.sh
index e04a50f..60449ae 100755
--- a/nekowatchlet/original-resources/makeatlas.sh
+++ b/nekowatchlet/original-resources/makeatlas.sh
@@ -12,7 +12,7 @@ do
if [[ $i =~ ^([a-z]+)[1-9].png ]]
then
stem=${BASH_REMATCH[1]}
- output=atlas/$stem.png
+ output=$stem.png.tmp
if [[ $atlasfiles != *$output* ]]
then
montage $stem?.png -geometry 32x32 $output
@@ -22,11 +22,11 @@ do
fi
done
-montage $atlasfiles -geometry 64x32+0+0 -gravity NorthWest -tile 1x atlas/atlas.png
+montage $atlasfiles -geometry 64x32+0+0 -gravity NorthWest -tile 1x atlas.png
rm -f $atlasfiles
-echo $stems | tr ' ' '\n' > atlas/atlas.txt
+echo $stems | tr ' ' '\n' > atlas.txt
exit 0
diff --git a/nekowatchlet/res/makeatlas.sh b/nekowatchlet/res/makeatlas.sh
deleted file mode 100644
index 60449ae..0000000
--- a/nekowatchlet/res/makeatlas.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-
-set -e
-
-allfiles=$(echo *.png | sort)
-atlasfiles=""
-stems=""
-
-for i in $allfiles
-do
- echo $i
- if [[ $i =~ ^([a-z]+)[1-9].png ]]
- then
- stem=${BASH_REMATCH[1]}
- output=$stem.png.tmp
- if [[ $atlasfiles != *$output* ]]
- then
- montage $stem?.png -geometry 32x32 $output
- atlasfiles="$atlasfiles $output"
- stems="$stems $stem"
- fi
- fi
-done
-
-montage $atlasfiles -geometry 64x32+0+0 -gravity NorthWest -tile 1x atlas.png
-
-rm -f $atlasfiles
-
-echo $stems | tr ' ' '\n' > atlas.txt
-
-exit 0
-