Skip to content

Commit

Permalink
use unique and incremental CI version
Browse files Browse the repository at this point in the history
  • Loading branch information
neolynx committed Sep 17, 2024
1 parent e7f617f commit ed02dab
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,12 @@ man: ## Create man pages
make -C man

version: ## Print aptly version
@if which dpkg-parsechangelog > /dev/null 2>&1; then \
if git describe --exact-match --tags HEAD >/dev/null 2>&1; then \
@ts=`TZ=UTC git show -s --format='%cd.%h' --date=format-local:'%Y%m%d%H%M%S'`; \
if which dpkg-parsechangelog > /dev/null 2>&1; then \
if [ -z "$$ts" ]; then \
dpkg-parsechangelog -S Version; \
else \
echo `dpkg-parsechangelog -S Version`+`git describe --tags | cut -d - -f2- | sed s/-/+/g`; \
echo `dpkg-parsechangelog -S Version`+$$ts; \
fi \
else \
git describe --tags --always | sed 's@^v@@' | sed 's@-@+@g'; \
Expand Down

0 comments on commit ed02dab

Please sign in to comment.