Skip to content

Commit

Permalink
Merge pull request #136 from alfonsosanchezbeato/add-date-to-version
Browse files Browse the repository at this point in the history
Add build date as suffix to the version
  • Loading branch information
alfonsosanchezbeato authored Oct 2, 2024
2 parents 519870a + ee39d15 commit e37afdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ install:
$(SUDO) mv binary/boot/filesystem.dir/* $(DESTDIR)/
# only copy the manifest file if we are in a launchpad buildd
set -e ; if [ -e /build/core ]; then \
TARGET_BASENAME=/build/core/core_16-$$(cat $(DESTDIR)/usr/lib/snapd/info|cut -f2 -d=|cut -f1 -d~|cut -b1-29)_$(DPKG_ARCH); \
TARGET_BASENAME=/build/core/core_16-$$(cat $(DESTDIR)/usr/lib/snapd/info|cut -f2 -d=|cut -f1 -d~|cut -b1-29)_$(DPKG_ARCH)-$$(/bin/date +%Y%m%d); \
$(SUDO) mv livecd.ubuntu-core.manifest "$${TARGET_BASENAME}".manifest; \
$(SUDO) cp /build/core/parts/livebuild/install/usr/share/snappy/dpkg.yaml "$${TARGET_BASENAME}".dpkg.yaml; \
ls -lah /build/core; \
Expand Down
2 changes: 1 addition & 1 deletion snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: core
version: 16-2
version-script: |
# remember to keep version script in sync with "Makefile"
echo "16-$(grep ^VERSION= prime/usr/lib/snapd/info |cut -f2 -d=| sed s/~ubuntu.*// | cut -b1-29)"
echo "16-$(grep ^VERSION= prime/usr/lib/snapd/info |cut -f2 -d=| sed s/~ubuntu.*// | cut -b1-29)-$(/bin/date +%Y%m%d)"
summary: snapd runtime environment
description: The core runtime environment for snapd
confinement: strict
Expand Down

0 comments on commit e37afdd

Please sign in to comment.