summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-03-07 15:26:15 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-03-07 15:26:15 +0000
commitca303129ab9b7005c5f69f9aa9d10934c9dc2f5f (patch)
treebe52a30e64840416252fd4ba8c23b5b62e884e30
parent3aebd936a5f26c465c6ee1cb566bd3739a732847 (diff)
downloadmidipix_build-ca303129ab9b7005c5f69f9aa9d10934c9dc2f5f.tar.bz2
midipix_build-ca303129ab9b7005c5f69f9aa9d10934c9dc2f5f.tar.xz
Create source tarball when and after creating distribution tarball.
-rwxr-xr-xbuild.sh8
-rw-r--r--build.vars1
2 files changed, 8 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index b08a338f..d19fab41 100755
--- a/build.sh
+++ b/build.sh
@@ -110,9 +110,15 @@ if [ $(( ${BUILD_NFINI} + ${BUILD_NSKIP} )) -ge 0 ] \
tar -cJpf ${TARBALL_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.tar.xz\
$(find_with_no_paths "${TARBALL_EXCLUDE_PATHS} native/lib.bak" . \
-mindepth 1 -maxdepth 2 -type d -not -path ./native);
+ log_msg info "Finished building distribution tarball.";
rm -rf ${PREFIX_BASENAME}/lib; mv ${PREFIX_BASENAME}/lib.bak ${PREFIX_BASENAME}/lib;
+ log_msg info "Restored ${PREFIX_BASENAME}/lib.";
+ log_msg info "Building source tarball...";
+ tar -cJpf ${TARBALL_SRC_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.tar.xz\
+ $(find tmp -mindepth 1 -maxdepth 1 -type d \
+ \( -name \*-native-\* -or -name \*-cross-\* \));
+ log_msg info "Finished building source tarball.";
cd ${OLDPWD};
- log_msg info "Finished building distribution tarball.";
update_build_status tarball_finish;
fi;
update_build_status finish; clean_build_status;
diff --git a/build.vars b/build.vars
index 6cb0a5f3..35039c1d 100644
--- a/build.vars
+++ b/build.vars
@@ -27,6 +27,7 @@
: ${LOG_MSG_WARN_COLOUR:=96};
: ${MAKEFLAGS_DEFAULT:=-j8};
: ${TARBALL_FNAME_PREFIX:=midipix.};
+: ${TARBALL_SRC_FNAME_PREFIX:=midipix-src.};
: ${TARBALL_EXCLUDE_PATHS:="src tmp"};
: ${TARGET:=x86_64-nt64-midipix};
: ${PREFIX_NATIVE:=${PREFIX}/native};