From 2047762e62d882403911eabff85995d2aec0dfd3 Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 8 Oct 2016 16:41:34 +1300 Subject: [PATCH] scripts: also make source tarball --- build.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build.sh b/build.sh index fa67c34..5e5bca8 100644 --- a/build.sh +++ b/build.sh @@ -165,6 +165,17 @@ main() { GOARCH=amd64 GOOS=linux single_build "$version" GOARCH=386 GOOS=linux single_build "$version" + # Also make source tarball + + local SOURCE_FILES=( + client/ + build.sh + Config.go + main.go + nmdc-webfrontend.conf.SAMPLE + ) + XZ_OPT='-9' tar caf "_dist/$(get_package_name)-${version}-src.tar.xz" "${SOURCE_FILES[@]}" --owner=0 --group=0 >/dev/null + echo "[INFO] Build complete." }