From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27135C169C4 for ; Thu, 31 Jan 2019 13:48:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 05CCE2085B for ; Thu, 31 Jan 2019 13:48:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731609AbfAaNsX (ORCPT ); Thu, 31 Jan 2019 08:48:23 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58748 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726863AbfAaNsX (ORCPT ); Thu, 31 Jan 2019 08:48:23 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6FDFC37E79 for ; Thu, 31 Jan 2019 13:48:22 +0000 (UTC) Received: from workstation.redhat.com (unknown [10.40.205.62]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7D31C5C236; Thu, 31 Jan 2019 13:48:21 +0000 (UTC) From: Petr Lautrbach To: selinux@vger.kernel.org Cc: Petr Lautrbach Subject: [PATCH] scripts/release: Update links to use release assets instead of wiki links Date: Thu, 31 Jan 2019 14:48:12 +0100 Message-Id: <20190131134812.20440-1-plautrba@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Thu, 31 Jan 2019 13:48:22 +0000 (UTC) Sender: selinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux@vger.kernel.org - new release files are created in release/$RELEASE_TAG - download links refers to new release assets Signed-off-by: Petr Lautrbach --- scripts/release | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/scripts/release b/scripts/release index ad10d557..07813749 100755 --- a/scripts/release +++ b/scripts/release @@ -7,11 +7,12 @@ if [ \! -d $WIKIDIR ]; then git clone git@github.com:SELinuxProject/selinux.wiki.git $WIKIDIR fi -DEST=$WIKIDIR/files/releases/$(date '+%Y%m%d') +RELEASE_TAG=$(date '+%Y%m%d') +DEST=releases/$RELEASE_TAG DIRS="libsepol libselinux libsemanage checkpolicy secilc policycoreutils mcstrans restorecond semodule-utils" DIRS_NEED_PREFIX="dbus gui python sandbox" -git tag -a $(date '+%Y%m%d') -m "Release $(date '+%Y%m%d')" +git tag -a $RELEASE_TAG -m "Release $RELEASE_TAG" rm -rf $DEST mkdir -p $DEST @@ -44,19 +45,34 @@ echo "" echo "## Release $(date '+%Y-%m-%d')" +echo "" + +echo "[Release Notes](https://github.com/SELinuxProject/selinux/releases/download/$RELEASE_TAG/RELEASE-$RELEASE_TAG.txt)" +echo "" +echo "[full log](https://github.com/SELinuxProject/selinux/releases/download/$RELEASE_TAG/log-$RELEASE_TAG.txt)" +echo "" +echo "[short log](https://github.com/SELinuxProject/selinux/releases/download/$RELEASE_TAG/shortlog-$RELEASE_TAG.txt)" +echo "" + for i in *.tar.gz; do - echo -n "[$i](https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/$(date '+%Y%m%d')/$i) " + echo -n "[$i](https://github.com/SELinuxProject/selinux/releases/download/$RELEASE_TAG/$i) " sha256sum $i | cut -d " " -f 1 echo "" done echo "And then run:" echo " cd $WIKIDIR" -echo " git commit -m \"Release $(date '+%Y%m%d')\" -a -s" +echo " git commit -m \"Release $RELEASE_TAG\" -a -s" echo " git push" echo "" echo "Push the release and its tags to git via:" echo " git push" echo " git push --tags" + +echo "" +echo "Create a new release from the latest tag on https://github.com/SELinuxProject/selinux/tags" + +echo "" +echo "Add files from releases/$RELEASE_TAG as assets to the new github release" -- 2.20.1