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 79765a0 commit 3b9449bCopy full SHA for 3b9449b
contrib/release/README
@@ -25,8 +25,7 @@ StGit Release Checklist
25
26
4. Make source archive
27
28
- - `git archive --format=tar.gz --prefix=stgit-X.Y.Z/ -o stgit-X.Y.Z.tar.gz vX.Y.Z`
29
- - Note the trailing slash in the `--prefix` value.
+ - `./contrib/releases/make-archive.sh`
30
- This archive will be uploaded in step 7.
31
32
5. Update stacked-git.github.io
contrib/release/make-archive.sh
@@ -0,0 +1,12 @@
1
+#!/bin/sh
2
+
3
+set -eu
4
5
+OUTPUT_DIR=${1:-.}
6
+TAG=$(git describe --match 'v*.*.*' --exact-match)
7
+VER=${TAG#v}
8
+ARCHIVE="stgit-${VER}.tar.gz"
9
10
+git archive --format=tar.gz --prefix="stgit-${VER}/" -o "${OUTPUT_DIR}/${ARCHIVE}" "${TAG}"
11
12
+printf "%s/%s\n" "${OUTPUT_DIR}" "${ARCHIVE}"
0 commit comments