summaryrefslogtreecommitdiff
path: root/package-source.bash
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-01-07 19:00:20 +0100
committerJakob Unterwurzacher2018-01-07 19:01:59 +0100
commit1ae218b417488c727450363827a0776c444278f7 (patch)
treef49b757eea7db595f9d19c60ca1ad83c6eed4c86 /package-source.bash
parenta85dbcab38bcad0ef713187a637a7023d016829f (diff)
package-source.bash: also create source-only tarball
We used to only create a source + dependecies tarball, but having a source-only tarball makes packaging deb/rpm easier.
Diffstat (limited to 'package-source.bash')
-rwxr-xr-xpackage-source.bash17
1 files changed, 12 insertions, 5 deletions
diff --git a/package-source.bash b/package-source.bash
index 313b59e..05c6fd2 100755
--- a/package-source.bash
+++ b/package-source.bash
@@ -16,12 +16,19 @@ git_archive_extra() {
cd "$(dirname "$0")"
GITVERSION=$(git describe --tags --dirty)
-PREFIX=gocryptfs_${GITVERSION}_src-deps
+echo $GITVERSION > VERSION
+
+# gocryptfs source tarball
+PREFIX_SRC_ONLY=gocryptfs_${GITVERSION}_src
+git_archive_extra $PREFIX_SRC_ONLY VERSION
+# gocryptfs source + dependencies tarball
dep ensure
-echo $GITVERSION > VERSION
-git_archive_extra $PREFIX VERSION vendor
+PREFIX_SRC_DEPS=gocryptfs_${GITVERSION}_src-deps
+git_archive_extra $PREFIX_SRC_DEPS VERSION vendor
+
rm VERSION
-echo "Tar created."
-echo "Hint for signing: gpg -u 23A02740 --armor --detach-sig $PREFIX.tar.gz"
+echo "Tars created."
+echo "Hint for signing: gpg -u 23A02740 --armor --detach-sig $PREFIX_SRC_ONLY.tar.gz"
+echo " gpg -u 23A02740 --armor --detach-sig $PREFIX_SRC_DEPS.tar.gz"