mariadb/Docs/Support/generate-flag-images

38 lines
1,002 B
Text
Raw Normal View History

2000-07-31 21:29:14 +02:00
#!/bin/sh
tmp=/tmp/temp-pic.pnm
2001-01-01 19:53:24 +01:00
all="argentina austria czech-republic germany great-britain hungary israel
italy russia portugal sweden canada usa south-korea japan taiwan australia
2000-07-31 21:29:14 +02:00
romania denmark france estonia poland singapore bulgaria south-africa
netherlands chile ukraine greece finland switzerland croatia china
brazil spain iceland ireland denmark"
new=""
set -x
2001-01-01 19:53:24 +01:00
cd Flags
2000-07-31 21:29:14 +02:00
# for c in $all; do cp empty.png $c.pdf; done; exit
for c in $new
do
# For HTML version
2001-01-01 19:53:24 +01:00
giftopnm ../Raw-Flags/$c.gif | \
pnmscale -xsize 30 > $tmp
pnmpaste $tmp 1 1 ../Images/flag-background.pnm > $c.pnm
2000-07-31 21:29:14 +02:00
rm -f $tmp
# For web version
ppmtogif $c.pnm > $c.gif
# or cjpeg -optimize -quality 70 -outfile $c.jpg
# For PDF version (this coredumps. use empty file until fixed)
# pnmtopng -verbose $c.pnm > $c.png
2001-01-01 19:53:24 +01:00
cp ../Images/empty.png $c.pdf
2000-07-31 21:29:14 +02:00
# For TeX version
2001-01-01 19:53:24 +01:00
giftopnm ../Raw-Flags/$c.gif | \
2000-07-31 21:29:14 +02:00
pnmscale -xsize 30 | \
pnmtops -noturn > $c.eps
# For text version
echo -n "" > $c.txt
done