From 2f5eda680a0c7e2bce5e6d88d879ced3ca2e2751 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 22 Aug 2019 23:22:56 +0800 Subject: add archive-all.sh --- scripts/archive-all.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/archive-all.sh (limited to 'scripts') diff --git a/scripts/archive-all.sh b/scripts/archive-all.sh new file mode 100755 index 000000000..287052a6b --- /dev/null +++ b/scripts/archive-all.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +# ./scripts/archive-all.sh v2.2.7 +tag=$1 +format="tar.gz" +projectdir=/tmp/.xmake_archive +outputfile=`pwd`/xmake-$tag.$format +if [ -d $projectdir ]; then + rm -rf $projectdir +fi +git clone --depth=1 -b "$tag" "https://github.com/xmake-io/xmake.git" --recursive $projectdir +cd $projectdir +rm -rf tests +git add . +git commit -a -m "..." +git tag "$tag-1" +git archive --format $format -o $outputfile "$tag-1" +shasum -a 256 $outputfile -- cgit v1.3.1