Initial commit

This commit is contained in:
JT 2013-01-26 14:12:46 +00:00
commit fdcda3bbf9
8657 changed files with 534 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
flags.zip

55
Hello.txt Normal file
View File

@ -0,0 +1,55 @@
Flag Icons by GoSquared (http://www.gosquared.com/)
Version: 2.2
Last Updated: 29th October 2012
Usage:
You're free to use this set for both personal and commercial projects
(MIT License, see LICENSE.txt), and a back-link is not required
(but certainly appreciated).
Inclusion of flags:
This icon set includes all flags for recognized sovereign states, plus several other major
territories. As a rule, disputed states ARE included without discrimination.
Contacting Us:
If you have any suggestions of corrections (incorrectly named, missing, or out-of-date flags etc.),
then don't hesitate to get in touch at support@gosquared.com and we will do our best
to rectify any mistakes or omissions.
Changelog:
* 2.3: 26th January 2013
Added more missing flags:
French Polynesia
Frensh Southern Territories
Tokelau
Wallis and Futuna
Removed Kosovo's ISO code (it doesn't have one, KV was wrong)
Corrected East Timor's ISO code (TP -> TL)
* 2.2: 29th October 2012
Added some missing flags:
British Antarctic Territories
Christmas Island
Cocos (Keeling) Islands
Cook Islands
Gibraltar
Mayotte
New Caledonia
Niue
Added ico and icns formats
Fixed problem where all flags in flats/flat had no extension (oops!)
Fixed alignment of Nepal overlay at 48x48
* 2.1: 19th October 2012
Fixed incorrect ISO code for Montenegro (CS -> ME)
* 2.0: 18th October 2012
Fully revamped with new "shiny" style, updated with changed and new flags
* 1.0: 16th September 2010
First created. Icon set containing 2400 flag icons

7
LICENSE.txt Normal file
View File

@ -0,0 +1,7 @@
Copyright (c) 2012 Go Squared Ltd. http://www.gosquared.com/
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

136
Makefile Normal file
View File

@ -0,0 +1,136 @@
# Flag-set-generating makefile
INDIR := src/flags
OUTDIR := flags
OVERLAYDIR := src/overlays
SIZES ?= 16 24 32 48 64
ICNS_SIZES := $(filter-out 24 64,$(SIZES))
FLAGS := $(shell ls $(INDIR))
SQUARE := $(filter Vatican-City Switzerland,$(FLAGS))
NEPAL := $(filter Nepal,$(FLAGS))
NORMAL := $(filter-out $(SQUARE) $(NEPAL),$(FLAGS))
PNGCRUSH_OPTIONS ?= -q -brute -rem alla
TMP_FILE := $(shell mktemp -u)
PWD := $(shell pwd)
# change to cp for testing puposes
copy_png = pngcrush ${PNGCRUSH_OPTIONS}
# a lot of the files are just renames of other generated
# files. This is the least messy way I can find to do it.
define copy_file
$1: $2
@mkdir -p $$(@D)
cp $$^ $$@
endef
define process_flag
# flat normal
$2: $1
@mkdir -p $$(@D)
$(copy_png) $$^ $$@
# shiny normal
$3: $1
@mkdir -p $$(@D)
composite ${OVERLAYDIR}/$6/$7.png $$^ $8; $(copy_png) $8 $$@
@rm -f $8
# flat iso
$(call copy_file,$4,$2)
# shiny iso
$(call copy_file,$5,$3)
FLAG_FLAT_FILES += $2
FLAG_SHINY_FILES += $3
FLAG_ISO_FLAT_FILES += $4
FLAG_ISO_SHINY_FILES += $5
endef
define define_icon
# flat normal
$1/flat/$5/$3.$5: $(addsuffix /$3.png,$(addprefix $1/flat/,$6))
@mkdir -p $$(@D)
ifeq (ico,$5)
convert $$^ $$@
else
png2icns $$@ $$^ > /dev/null
endif
# flat iso
$(call copy_file,$2/flat/$5/$4.$5,$1/flat/$5/$3.$5)
# shiny normal
$1/shiny/$5/$3.$5: $(addsuffix /$3.png,$(addprefix $1/shiny/,$6))
@mkdir -p $$(@D)
ifeq (ico,$5)
convert $$^ $$@
else
png2icns $$@ $$^ > /dev/null
endif
# shiny iso
$(call copy_file,$2/shiny/$5/$4.$5,$1/shiny/$5/$3.$5)
FLAG_FLAT_FILES += $1/flat/$5/$3.$5
FLAG_ISO_FLAT_FILES += $2/flat/$5/$4.$5
FLAG_SHINY_FILES += $1/shiny/$5/$3.$5
FLAG_ISO_SHINY_FILES += $2/shiny/$5/$4.$5
endef
define define_flag
$(foreach size,${SIZES},\
$(call process_flag,\
${INDIR}/$1/$(size).png,\
${OUTDIR}/flags/flat/$(size)/$1.png,\
${OUTDIR}/flags/shiny/$(size)/$1.png,\
${OUTDIR}/flags-iso/flat/$(size)/$2.png,\
${OUTDIR}/flags-iso/shiny/$(size)/$2.png,$3,$(size),${TMP_FILE}.$2.$(size).png))
$(call define_icon,${OUTDIR}/flags,${OUTDIR}/flags-iso,$1,$2,ico,$(SIZES))
$(call define_icon,${OUTDIR}/flags,${OUTDIR}/flags-iso,$1,$2,icns,$(ICNS_SIZES))
endef
.PHONY: all clean
all: flags.zip
$(foreach flag,${NORMAL}, \
$(eval $(call define_flag,$(flag),$(shell cat "${INDIR}/$(flag)/code"),normal)))
$(foreach flag,${SQUARE}, \
$(eval $(call define_flag,$(flag),$(shell cat "${INDIR}/$(flag)/code"),square)))
$(foreach flag,${NEPAL}, \
$(eval $(call define_flag,$(flag),$(shell cat "${INDIR}/$(flag)/code"),nepal)))
ZIPFILES = \
${FLAG_FLAT_FILES} \
${FLAG_SHINY_FILES} \
${FLAG_ISO_FLAT_FILES} \
${FLAG_ISO_SHINY_FILES} \
${OUTDIR}/LICENSE.txt \
${OUTDIR}/Hello.txt
flags.zip: ${OUTDIR} ${ZIPFILES}
$(if $(wildcard $@),rm -f $@,)
cd ${OUTDIR}; zip -q -r -9 -T ${PWD}/$@ *
${OUTDIR}: ${ZIPFILES}
${OUTDIR}/%.txt:
cp $*.txt $@
clean:
rm -fr ${OUTDIR} flags.zip

20
README.md Normal file
View File

@ -0,0 +1,20 @@
# GoSquared's Flag Icon Set
Here you'll find all the files available in our [flag icon set][1] and the tools we use to generate the downloadable file.
If you have any comments, corrections or additions then let us know with an issue or pull request
## Building your own version of the icon set
If you want to build your own version of this flag set, with any additions or modifications, just edit the files in `src/flags`. Each flag has its own folder, and inside each folder there is one PNG file for each size of the flag. Also in each folder is a file called `code`, which contains the ISO-3166-2 country code for the flag.
To generate the full set, just run `make` (you may want to run `make clean` if you have removed any flags). To speed up generation, try running `make -jN` where `N` is the number of CPU cores you have (e.g. `make -j4` on a quad-core machine)
### Tools required for generating the set
* GNU Make
* imagemagick
* png2icns (provided on Ubuntu by `icnsutils`, or [via soruceforge](http://icns.sourceforge.net/))
[1]: https://www.gosquared.com/resources/flag-icons

55
flags/Hello.txt Normal file
View File

@ -0,0 +1,55 @@
Flag Icons by GoSquared (http://www.gosquared.com/)
Version: 2.2
Last Updated: 29th October 2012
Usage:
You're free to use this set for both personal and commercial projects
(MIT License, see LICENSE.txt), and a back-link is not required
(but certainly appreciated).
Inclusion of flags:
This icon set includes all flags for recognized sovereign states, plus several other major
territories. As a rule, disputed states ARE included without discrimination.
Contacting Us:
If you have any suggestions of corrections (incorrectly named, missing, or out-of-date flags etc.),
then don't hesitate to get in touch at support@gosquared.com and we will do our best
to rectify any mistakes or omissions.
Changelog:
* 2.3: 26th January 2013
Added more missing flags:
French Polynesia
Frensh Southern Territories
Tokelau
Wallis and Futuna
Removed Kosovo's ISO code (it doesn't have one, KV was wrong)
Corrected East Timor's ISO code (TP -> TL)
* 2.2: 29th October 2012
Added some missing flags:
British Antarctic Territories
Christmas Island
Cocos (Keeling) Islands
Cook Islands
Gibraltar
Mayotte
New Caledonia
Niue
Added ico and icns formats
Fixed problem where all flags in flats/flat had no extension (oops!)
Fixed alignment of Nepal overlay at 48x48
* 2.1: 19th October 2012
Fixed incorrect ISO code for Montenegro (CS -> ME)
* 2.0: 18th October 2012
Fully revamped with new "shiny" style, updated with changed and new flags
* 1.0: 16th September 2010
First created. Icon set containing 2400 flag icons

7
flags/LICENSE.txt Normal file
View File

@ -0,0 +1,7 @@
Copyright (c) 2012 Go Squared Ltd. http://www.gosquared.com/
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 518 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 449 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 331 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 421 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 420 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 455 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 B

Some files were not shown because too many files have changed in this diff Show More