[#11] Fix lintian warnings

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
Stanislav Bogatyrev 2022-10-27 22:54:31 +03:00 committed by Stanislav Bogatyrev
parent bbb5840e03
commit 606f993290
3 changed files with 13 additions and 13 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@ in/
locode_db locode_db
# debhelpers # debhelpers
**/.debhelper **/.debhelper
debian/changelog

View file

@ -12,14 +12,14 @@ space := $(subst ,, )
# .deb package versioning # .deb package versioning
OS_RELEASE = $(shell lsb_release -cs) OS_RELEASE = $(shell lsb_release -cs)
PKG_VERSION ?= $(shell echo $(VERSION) | sed "s/^v//" | \ PKG_VERSION ?= $(shell echo $(VERSION) | sed "s/^v//" | \
sed -E "s/(.*)-(g[a-fA-F0-9]{6,8})(.*)/\1\3~\2/" | \ sed -E "s/(.*)-(g[a-fA-F0-9]{6,8})(.*)/\1\3~\2/" | \
sed "s/-/~/")-${OS_RELEASE} sed "s/-/~/")-${OS_RELEASE}
all: $(DIRS) locode_db all: $(DIRS) locode_db
$(DIRS): $(DIRS):
@echo "⇒ Ensure dir: $@" @echo "⇒ Ensure dir: $@"
@mkdir -p $@ @mkdir -p $@
in/airports.dat: in/airports.dat:
wget -c https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat -O in/airports.dat wget -c https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat -O in/airports.dat
@ -42,6 +42,7 @@ locode_db: unlocode in/continents.geojson in/airports.dat in/countries.dat
--in in/2022-1\ UNLOCODE\ CodeListPart1.csv,in/2022-1\ UNLOCODE\ CodeListPart2.csv,in/2022-1\ UNLOCODE\ CodeListPart3.csv \ --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 \ --subdiv in/2022-1\ SubdivisionCodes.csv \
--out locode_db --out locode_db
chmod 644 locode_db
# Print version # Print version
version: version:
@ -66,12 +67,12 @@ clean:
# Package for Debian # Package for Debian
debpackage: debpackage:
dch --package neofs-locode-db \ dch --package neofs-locode-db \
--controlmaint \ --controlmaint \
--newversion $(PKG_VERSION) \ --newversion $(PKG_VERSION) \
--force-bad-version \ --force-bad-version \
--distribution $(OS_RELEASE) \ --distribution $(OS_RELEASE) \
"Please see CHANGELOG.md for code changes for $(VERSION)" "Please see CHANGELOG.md for code changes for $(VERSION)"
dpkg-buildpackage --no-sign -b dpkg-buildpackage --no-sign -b
debclean: debclean:
dh clean dh clean

4
debian/rules vendored
View file

@ -5,7 +5,7 @@ export DEB_BUILD_OPTIONS := nostrip nocheck
%: %:
dh $@ dh $@
override_dh_auto_build: override_dh_auto_build:
$(MAKE) all $(MAKE) all
override_dh_installchangelogs: override_dh_installchangelogs:
@ -13,5 +13,3 @@ override_dh_installchangelogs:
override_dh_clean: override_dh_clean:
dh_clean dh_clean
rm -f locode_db