diff mbox series

[2/3] Use X.Y instead of date for release tag

Message ID 20201127085220.813760-3-plautrba@redhat.com (mailing list archive)
State Accepted
Headers show
Series [1/3] Introduce VERSION file for selinux | expand

Commit Message

Petr Lautrbach Nov. 27, 2020, 8:52 a.m. UTC
From: Hu Keping <hukeping@huawei.com>

As per discussed at github issue[1] and mailing list[2], we consider
a version format of X.Y starting at 3.2.

[1]: https://github.com/SELinuxProject/selinux/issues/270
[2]: https://lore.kernel.org/selinux/87d004wan2.fsf@redhat.com/T/#u

Signed-off-by: Hu Keping <hukeping@huawei.com>
---
 scripts/release | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/scripts/release b/scripts/release
index 0781374954e4..040aaf68e86a 100755
--- a/scripts/release
+++ b/scripts/release
@@ -7,7 +7,7 @@  if [ \! -d $WIKIDIR ]; then
     git clone git@github.com:SELinuxProject/selinux.wiki.git $WIKIDIR
 fi
 
-RELEASE_TAG=$(date '+%Y%m%d')
+RELEASE_TAG=`cat VERSION`
 DEST=releases/$RELEASE_TAG
 DIRS="libsepol libselinux libsemanage checkpolicy secilc policycoreutils mcstrans restorecond semodule-utils"
 DIRS_NEED_PREFIX="dbus gui python sandbox"
@@ -43,7 +43,7 @@  echo "Add the following to the $WIKIDIR/Releases.md wiki page:"
 
 echo ""
 
-echo "## Release $(date '+%Y-%m-%d')"
+echo "## Release $RELEASE_TAG"
 
 echo ""