diff --git a/dist/flags/a1.png b/dist/flags/a1.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/a1.png differ diff --git a/dist/flags/a2.png b/dist/flags/a2.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/a2.png differ diff --git a/dist/flags/ac.png b/dist/flags/ac.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/ac.png differ diff --git a/dist/flags/an.png b/dist/flags/an.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/an.png differ diff --git a/dist/flags/ap.png b/dist/flags/ap.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/ap.png differ diff --git a/dist/flags/bu.png b/dist/flags/bu.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/bu.png differ diff --git a/dist/flags/cat.png b/dist/flags/cat.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/cat.png differ diff --git a/dist/flags/cp.png b/dist/flags/cp.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/cp.png differ diff --git a/dist/flags/cs.png b/dist/flags/cs.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/cs.png differ diff --git a/dist/flags/dg.png b/dist/flags/dg.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/dg.png differ diff --git a/dist/flags/ea.png b/dist/flags/ea.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/ea.png differ diff --git a/dist/flags/fx.png b/dist/flags/fx.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/fx.png differ diff --git a/dist/flags/ic.png b/dist/flags/ic.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/ic.png differ diff --git a/dist/flags/nt.png b/dist/flags/nt.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/nt.png differ diff --git a/dist/flags/o1.png b/dist/flags/o1.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/o1.png differ diff --git a/dist/flags/sf.png b/dist/flags/sf.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/sf.png differ diff --git a/dist/flags/su.png b/dist/flags/su.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/su.png differ diff --git a/dist/flags/ta.png b/dist/flags/ta.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/ta.png differ diff --git a/dist/flags/tp.png b/dist/flags/tp.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/tp.png differ diff --git a/dist/flags/uk.png b/dist/flags/uk.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/uk.png differ diff --git a/dist/flags/xx.png b/dist/flags/xx.png index 1b495a1..68fb3d1 100644 Binary files a/dist/flags/xx.png and b/dist/flags/xx.png differ diff --git a/dist/flags/yu.png b/dist/flags/yu.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/yu.png differ diff --git a/dist/flags/zr.png b/dist/flags/zr.png new file mode 100644 index 0000000..68fb3d1 Binary files /dev/null and b/dist/flags/zr.png differ diff --git a/flags.sh b/flags.sh index 0be1fe8..caf0967 100755 --- a/flags.sh +++ b/flags.sh @@ -10,7 +10,7 @@ fi for i in src/flags/*.svg; do echo "$i" origFilename=$(basename "$i") - code=${origFilename%.*} + code="${origFilename%.*}" distFile="${targetDir}/${code}.png" echo "$distFile" inkscape -f "$i" -h $height -e "$distFile" @@ -21,3 +21,13 @@ inkscape -f "unk.flag.svg" -h $height -e "dist/flags/xx.png" pngquant -f --ext .png -s 1 --skip-if-larger --quality 70-95 "dist/flags/xx.png" inkscape -f "ti.flag.svg" -h $height -e "dist//flags/ti.png" pngquant -f --ext .png -s 1 --skip-if-larger --quality 70-95 "dist//flags/ti.png" + +for i in ac cp dg ea eu fx ic su ta uk an bu cs nt sf tp yu zr a1 a2 ap o1 cat +do + icon="${targetDir}/${i}.png" + if [ ! -f "$icon" ] + then + echo -e "\033[31mWarning: No flag for $i, using default\033[0m" + cp "dist/flags/xx.png" "$icon" + fi +done diff --git a/unk.flag.svg b/unk.flag.svg index dcfcc4d..c4efa48 100644 --- a/unk.flag.svg +++ b/unk.flag.svg @@ -12,7 +12,7 @@ viewBox="0 0 640 480" version="1.1" id="svg8" - sodipodi:docname="unk.svg" + sodipodi:docname="unk.flag.svg" inkscape:version="0.92.0 r15299"> @@ -22,7 +22,7 @@ image/svg+xml - + @@ -38,34 +38,18 @@ inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1920" - inkscape:window-height="1019" + inkscape:window-height="1015" id="namedview10" showgrid="false" inkscape:zoom="0.49166667" - inkscape:cx="326.10169" - inkscape:cy="-237.06272" + inkscape:cx="-158.98305" + inkscape:cy="-239.09662" inkscape:window-x="0" - inkscape:window-y="27" + inkscape:window-y="36" inkscape:window-maximized="1" inkscape:current-layer="svg8" /> - - -