The .deb was hardcoded to 1.0.0-1 in debian/changelog regardless of POSTIT_GIT_TAG, so 'make POSTIT_GIT_TAG=1.0.1-rc01' produced a postit_1.0.0-1_amd64.deb (wrong name) and the trailing mv into POSTIT_OUT_DIR silently fell back to the same wrong-name glob. Move the version into a @VERSION@-bearing debian/changelog.in template and render debian/changelog from it in the Makefile, before dpkg-buildpackage runs (it reads debian/changelog during dpkg-source --before-build, before any rule fires). debian/changelog is .gitignored; the template is the source of truth. debian/rules re-renders the changelog as a safety net for direct dpkg-buildpackage invocations and adds it to override_dh_auto_clean so partial builds leave no stale rendered file behind.
36 lines
815 B
Text
36 lines
815 B
Text
# Debian package build artifacts
|
|
*.deb
|
|
*.buildinfo
|
|
*.changes
|
|
*.debian.tar.*
|
|
debian/files
|
|
debian/postit/
|
|
|
|
# Upstream source tree fetched by the build (in build/)
|
|
build/
|
|
|
|
# Editor / OS noise
|
|
.DS_Store
|
|
.idea/
|
|
.vscode/
|
|
*.swp
|
|
# Generated by debhelper during build
|
|
debian/.debhelper/
|
|
debian/debhelper-build-stamp
|
|
debian/postit.debhelper.log
|
|
debian/postit.substvars
|
|
|
|
# Generated from debian/changelog.in at the start of every build
|
|
# (see debian/rules and the Makefile). Versioned template is
|
|
# changelog.in; the rendered file is not tracked because it changes
|
|
# with POSTIT_GIT_TAG on every build.
|
|
debian/changelog
|
|
|
|
# Staging tree for dh_install
|
|
debian/tmp/
|
|
|
|
# Built .deb artifacts that fall outside the source tree (dpkg-buildpackage
|
|
# drops them next to the parent dir)
|
|
postit_*.deb
|
|
postit_*.changes
|
|
postit_*.buildinfo
|