Update DB version and fix package build #2
1 changed files with 5 additions and 5 deletions
10
Makefile
10
Makefile
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
VERSION ?= "$(shell git describe --tags --match "v*" --dirty --always --abbrev=8 2>/dev/null || cat VERSION 2>/dev/null || echo "develop")"
|
||||
FROST ?= frost
|
||||
FROST ?= frostfs-cli
|
||||
|
||||
.PHONY: all clean version help unlocode debpackage
|
||||
|
||||
|
@ -31,16 +31,16 @@ in/continents.geojson: $(DIRS)
|
|||
zcat continents.geojson.gz > in/continents.geojson
|
||||
|
||||
unlocode:
|
||||
wget -c https://service.unece.org/trade/locode/loc221csv.zip -O tmp/loc221csv.zip
|
||||
unzip -u tmp/loc221csv.zip -d in/
|
||||
wget -c https://service.unece.org/trade/locode/loc222csv.zip -O tmp/loc222csv.zip
|
||||
unzip -u tmp/loc222csv.zip -d in/
|
||||
|
||||
locode_db: unlocode in/continents.geojson in/airports.dat in/countries.dat
|
||||
$(FROST) util locode generate \
|
||||
--airports in/airports.dat \
|
||||
--continents in/continents.geojson \
|
||||
--countries in/countries.dat \
|
||||
--in in/2022-1\ UNLOCODE\ CodeListPart1.csv,in/2022-1\ UNLOCODE\ CodeListPart2.csv,in/2022-1\ UNLOCODE\ CodeListPart3.csv \
|
||||
--subdiv in/2022-1\ SubdivisionCodes.csv \
|
||||
--in in/2022-2\ UNLOCODE\ CodeListPart1.csv,in/2022-2\ UNLOCODE\ CodeListPart2.csv,in/2022-2\ UNLOCODE\ CodeListPart3.csv \
|
||||
--subdiv in/2022-2\ SubdivisionCodes.csv \
|
||||
--out locode_db
|
||||
chmod 644 locode_db
|
||||
|
||||
|
|
Loading…
Reference in a new issue