All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scripts/release: Release also tarball with everything
@ 2021-01-29 20:00 Petr Lautrbach
  2021-01-30 13:32 ` Nicolas Iooss
  0 siblings, 1 reply; 4+ messages in thread
From: Petr Lautrbach @ 2021-01-29 20:00 UTC (permalink / raw)
  To: selinux; +Cc: Petr Lautrbach

Create and publish with sha256sum also tarball called
selinux-$VERS.tar.gz with the whole tree. It could be useful for unit
testing directly from tarball or backporting patches which affects more
subdirectories. Github already provides similar archive called "Source
code (tar.gz)" via release assets, but there's no guarantee this file
would not change.

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
---
 scripts/release | 23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)

diff --git a/scripts/release b/scripts/release
index 895a0e1ca1a1..40a9c06f56b9 100755
--- a/scripts/release
+++ b/scripts/release
@@ -35,6 +35,8 @@ for i in $DIRS_NEED_PREFIX; do
 	cd ..
 done
 
+git archive -o $DEST/selinux-$VERS.tar.gz --prefix=selinux-$VERS/ $VERS
+
 cd $DEST
 
 git add .
@@ -54,13 +56,28 @@ echo ""
 echo "[short log](https://github.com/SELinuxProject/selinux/releases/download/$RELEASE_TAG/shortlog-$RELEASE_TAG.txt)"
 echo ""
 
-for i in *.tar.gz; do
+for i in $DIRS; do
+	tarball=$i-$VERS.tar.gz
+	echo -n "[$tarball](https://github.com/SELinuxProject/selinux/releases/download/$RELEASE_TAG/$tarball) "
+	sha256sum $tarball | cut -d " " -f 1
+	echo ""
+done
 
-	echo -n "[$i](https://github.com/SELinuxProject/selinux/releases/download/$RELEASE_TAG/$i) "
-	sha256sum $i | cut -d " " -f 1
+for i in $DIRS_NEED_PREFIX; do
+	tarball=selinux-$i-$VERS.tar.gz
+	echo -n "[$tarball](https://github.com/SELinuxProject/selinux/releases/download/$RELEASE_TAG/$tarball) "
+	sha256sum $tarball | cut -d " " -f 1
 	echo ""
 done
 
+echo "### Everything"
+
+echo ""
+
+echo -n "[selinux-$VERS.tar.gz](https://github.com/SELinuxProject/selinux/releases/download/$RELEASE_TAG/selinux-$VERS.tar.gz) "
+sha256sum selinux-$VERS.tar.gz | cut -d " " -f 1
+echo ""
+
 echo "And then run:"
 echo "  cd $WIKIDIR"
 echo "  git commit  -m \"Release $RELEASE_TAG\" -a -s"
-- 
2.30.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-01 14:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-29 20:00 [PATCH] scripts/release: Release also tarball with everything Petr Lautrbach
2021-01-30 13:32 ` Nicolas Iooss
     [not found]   ` <87bld5o1te.fsf@redhat.com>
2021-01-31 17:30     ` Nicolas Iooss
2021-02-01 13:58       ` Petr Lautrbach

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.