mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-27 13:57:46 +00:00
use unique and incremental CI version
This commit is contained in:
@@ -109,11 +109,12 @@ man: ## Create man pages
|
|||||||
make -C man
|
make -C man
|
||||||
|
|
||||||
version: ## Print aptly version
|
version: ## Print aptly version
|
||||||
@if which dpkg-parsechangelog > /dev/null 2>&1; then \
|
@ts=`TZ=UTC git show -s --format='%cd.%h' --date=format-local:'%Y%m%d%H%M%S'`; \
|
||||||
if git describe --exact-match --tags HEAD >/dev/null 2>&1; then \
|
if which dpkg-parsechangelog > /dev/null 2>&1; then \
|
||||||
|
if [ -z "$$ts" ]; then \
|
||||||
dpkg-parsechangelog -S Version; \
|
dpkg-parsechangelog -S Version; \
|
||||||
else \
|
else \
|
||||||
echo `dpkg-parsechangelog -S Version`+`git describe --tags | cut -d - -f2- | sed s/-/+/g`; \
|
echo `dpkg-parsechangelog -S Version`+$$ts; \
|
||||||
fi \
|
fi \
|
||||||
else \
|
else \
|
||||||
git describe --tags --always | sed 's@^v@@' | sed 's@-@+@g'; \
|
git describe --tags --always | sed 's@^v@@' | sed 's@-@+@g'; \
|
||||||
|
|||||||
Reference in New Issue
Block a user