-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.sh
20 lines (15 loc) · 1.18 KB
/
demo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash -e
SCRIPTS=$(find ~ -path "*GIMP*scripts")
cp gimp/scripts/generate-demo.scm "$SCRIPTS"/
mkdir -p ".demo"
gimp -ib "(generate-demo \"moon\" \"neptune\" \"saturn\" \"venus\" \"$(mktemp -u .demo/XXX).png\")" -b '(gimp-quit TRUE)'
gimp -ib "(generate-demo \"saturn\" \"moon\" \"venus\" \"neptune\" \"$(mktemp -u .demo/XXX).png\")" -b '(gimp-quit TRUE)'
gimp -ib "(generate-demo \"neptune\" \"venus\" \"moon\" \"saturn\" \"$(mktemp -u .demo/XXX).png\")" -b '(gimp-quit TRUE)'
gimp -ib "(generate-demo \"venus\" \"saturn\" \"neptune\" \"moon\" \"$(mktemp -u .demo/XXX).png\")" -b '(gimp-quit TRUE)'
gimp -ib "(generate-demo \"jupiter\" \"uranus\" \"earth\" \"mars\" \"$(mktemp -u .demo/XXX).png\")" -b '(gimp-quit TRUE)'
gimp -ib "(generate-demo \"earth\" \"jupiter\" \"mars\" \"uranus\" \"$(mktemp -u .demo/XXX).png\")" -b '(gimp-quit TRUE)'
gimp -ib "(generate-demo \"uranus\" \"mars\" \"jupiter\" \"earth\" \"$(mktemp -u .demo/XXX).png\")" -b '(gimp-quit TRUE)'
gimp -ib "(generate-demo \"mars\" \"earth\" \"uranus\" \"jupiter\" \"$(mktemp -u .demo/XXX).png\")" -b '(gimp-quit TRUE)'
convert -delay 150 -loop 0 -resize 35% .demo/*.png demo.gif
rm -f "$SCRIPTS"/generate-demo.scm
rm -rf ".demo/"