mariadb/Docs/Support/generate-flag-images

32 lines
608 B
Text
Raw Normal View History

2000-07-31 21:29:14 +02:00
#!/bin/sh
flags=`grep @image mirrors.texi | cut -d" " -f1 | cut -d/ -f2 | tr -d "}" | sort | uniq`
2000-07-31 21:29:14 +02:00
set -x
cd Flags
2000-07-31 21:29:14 +02:00
for c in $flags
2000-07-31 21:29:14 +02:00
do
# For PNM, to be used later
giftopnm ../Raw-Flags/$c.gif | pnmscale -xsize 30 > $c-tmp.pnm
pnmpaste $c-tmp.pnm 1 1 ../Images/flag-background.pnm > $c.pnm
rm -f $c-tmp.pnm
# For GIF version
2000-07-31 21:29:14 +02:00
ppmtogif $c.pnm > $c.gif
# or cjpeg -optimize -quality 70 -outfile $c.jpg
# For EPS version
pnmtops -noturn $c.pnm > $c.eps
# For PDF version
ps2pdf $c.eps $c.pdf
2000-07-31 21:29:14 +02:00
# For text version
echo -n "" > $c.txt
# PNM isn't really needed
rm -f $c.pnm
2000-07-31 21:29:14 +02:00
done