summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/archive-all.sh18
1 files changed, 18 insertions, 0 deletions
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