From patchwork Thu Jan 31 13:48:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Lautrbach X-Patchwork-Id: 10790635 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6410A139A for ; Thu, 31 Jan 2019 13:48:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 584CF30EE0 for ; Thu, 31 Jan 2019 13:48:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C92F30EDF; Thu, 31 Jan 2019 13:48:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF72730EDA for ; Thu, 31 Jan 2019 13:48:23 +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 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 X-Virus-Scanned: ClamAV using ClamSMTP - new release files are created in release/$RELEASE_TAG - download links refers to new release assets Signed-off-by: Petr Lautrbach Acked-by: Nicolas Iooss --- 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"