We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cbadd0 commit 5f9682eCopy full SHA for 5f9682e
scripts/create-git-archive.sh
@@ -0,0 +1,12 @@
1
+#!/bin/bash
2
+set -e
3
+
4
+url=`git remote get-url origin`
5
+project=`basename "$url"`
6
+project="${project%.git}"
7
+version="`git describe --abbrev=0``git log -n 1 --pretty=format:"+%cd~git%h" --date=format:%Y%m%d master`"
8
+version="${version#v}"
9
10
+git-archive-all --verbose --prefix "$project-$version/" "$project-$version.tar"
11
+zopfli "$project-$version.tar"
12
+rm -f "$project-$version.tar"
0 commit comments