#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

execute_after_dh_auto_install:
	node -e 'const fs = require("node:fs"); const file = "debian/node-vvo-tzdb/usr/share/nodejs/@vvo/tzdb/package.json"; const pkg = JSON.parse(fs.readFileSync(file, "utf8")); pkg.version = process.argv[1]; fs.writeFileSync(file, JSON.stringify(pkg, null, 2) + "\n");' '$(DEB_VERSION_UPSTREAM)'
