2000-07-31 21:29:14 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2002-03-13 23:16:56 -06:00
|
|
|
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
|
2002-03-13 23:16:56 -06:00
|
|
|
cd Flags
|
2000-07-31 21:29:14 +02:00
|
|
|
|
2002-03-13 23:16:56 -06:00
|
|
|
for c in $flags
|
2000-07-31 21:29:14 +02:00
|
|
|
do
|
2002-03-13 23:16:56 -06:00
|
|
|
# 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
|
2002-03-13 23:16:56 -06:00
|
|
|
|
|
|
|
# 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
|
2002-03-13 23:16:56 -06:00
|
|
|
|
|
|
|
# PNM isn't really needed
|
|
|
|
rm -f $c.pnm
|
|
|
|
|
2000-07-31 21:29:14 +02:00
|
|
|
done
|