From 0689aab2e13a2b4105a2d361cd8fc83e9c4a7cf9 Mon Sep 17 00:00:00 2001 From: aiuto Date: Thu, 3 Dec 2020 23:39:17 -0500 Subject: [PATCH] first draft releaser script --- distro/makerel.sh | 47 +++++++++++++++++++++++++++++++++++++++++++++ distro/releasing.md | 9 +++++++++ 2 files changed, 56 insertions(+) create mode 100755 distro/makerel.sh create mode 100644 distro/releasing.md diff --git a/distro/makerel.sh b/distro/makerel.sh new file mode 100755 index 0000000..b0dd1cb --- /dev/null +++ b/distro/makerel.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +if [[ $# != 1 ]] ; then + echo "usage: $0 version" + exit 1 +fi +version="$1" + +if [[ ! -f WORKSPACE ]] ; then + echo 'You must run this command from the top of the workspace.' + exit 1 +fi + + +dist_file="/tmp/platforms-${version}.tar.gz" +tar czf "$dist_file" BUILD LICENSE WORKSPACE cpu os +sha256=$(shasum -a256 "$dist_file" | cut -d' ' -f1) +md5 $dist_file + + +cat <