diff options
Diffstat (limited to 'gen.sh')
| -rwxr-xr-x | gen.sh | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -7,11 +7,14 @@ mkdir -p export_flip | |||
| 7 | rm -f export_flip/* | 7 | rm -f export_flip/* |
| 8 | 8 | ||
| 9 | find . -type f \( -iname "*.svg" ! -iname ".*" \) -print0 | parallel -0 'x={.}; inkscape -z -e "export/${x#./}.png" "{}"' {} \; | 9 | find . -type f \( -iname "*.svg" ! -iname ".*" \) -print0 | parallel -0 'x={.}; inkscape -z -e "export/${x#./}.png" "{}"' {} \; |
| 10 | ./blobfoxdundundun.sh | ||
| 10 | cp LICENSE export/ | 11 | cp LICENSE export/ |
| 11 | cp export/* export_flip/ | 12 | cp export/* export_flip/ |
| 12 | 13 | ||
| 13 | cd export | 14 | cd export |
| 14 | apngasm -o ablobfoxbongo.png blobfoxbongo.png 100 blobfoxbongostart.png 100 | 15 | apngasm -o ablobfoxbongo.png blobfoxbongo.png 100 blobfoxbongostart.png 100 |
| 16 | apngasm -o ablobfoxhyper.png blobfoxhyper1.png 2:100 blobfoxhyper2.png 2:100 blobfoxhyper3.png 2:100 | ||
| 17 | rm blobfoxhyper1.png blobfoxhyper2.png blobfoxhyper3.png | ||
| 15 | 18 | ||
| 16 | FILELIST=`find . -type f -iname '*.png' -exec sh -c 'x=${0#./}; printf "%s:%s|" ${x%.png} $x' {} \;` | 19 | FILELIST=`find . -type f -iname '*.png' -exec sh -c 'x=${0#./}; printf "%s:%s|" ${x%.png} $x' {} \;` |
| 17 | jq -Rn 'input | split("|") | map(split(":") | { key: .[0], value: .[1] }) | from_entries' <<< "${FILELIST%|}" > blobfox.json | 20 | jq -Rn 'input | split("|") | map(split(":") | { key: .[0], value: .[1] }) | from_entries' <<< "${FILELIST%|}" > blobfox.json |
| @@ -22,10 +25,12 @@ CHECKSUM=`sha256sum -z blobfox.zip | awk '{ print $1 }'` | |||
| 22 | 25 | ||
| 23 | cd ../export_flip | 26 | cd ../export_flip |
| 24 | 27 | ||
| 25 | rm blobfoxsign*.png blobfoxconfused.png blobfoxbottompeek2.png blobfoxbreadsnoot*.png | 28 | rm blobfoxsign*.png blobfoxconfused.png blobfoxbreadsnoot*.png |
| 26 | find . -type f -iname '*.png' -exec sh -c 'x=${0#./blobfox}; mv blobfox$x revblobfox$x' {} \; | 29 | find . -type f -iname '*.png' -exec sh -c 'x=${0#./blobfox}; mv blobfox$x revblobfox$x' {} \; |
| 27 | mogrify -flop *.png | 30 | mogrify -flop *.png |
| 28 | apngasm -o arevblobfoxbongo.png revblobfoxbongo.png 100 revblobfoxbongostart.png 100 | 31 | apngasm -o arevblobfoxbongo.png revblobfoxbongo.png 100 revblobfoxbongostart.png 100 |
| 32 | apngasm -o arevblobfoxhyper.png revblobfoxhyper1.png 2:100 revblobfoxhyper2.png 2:100 revblobfoxhyper3.png 2:100 | ||
| 33 | rm revblobfoxhyper1.png revblobfoxhyper2.png revblobfoxhyper3.png | ||
| 29 | FILELIST=`find . -type f -iname '*.png' -exec sh -c 'x=${0#./}; printf "%s:%s|" ${x%.png} $x' {} \;` | 34 | FILELIST=`find . -type f -iname '*.png' -exec sh -c 'x=${0#./}; printf "%s:%s|" ${x%.png} $x' {} \;` |
| 30 | jq -Rn 'input | split("|") | map(split(":") | { key: .[0], value: .[1] }) | from_entries' <<< "${FILELIST%|}" > blobfox_flip.json | 35 | jq -Rn 'input | split("|") | map(split(":") | { key: .[0], value: .[1] }) | from_entries' <<< "${FILELIST%|}" > blobfox_flip.json |
| 31 | 36 | ||
