diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-07-25 12:04:23 +0200 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-07-25 12:04:23 +0200 |
commit | ed295a65693b47cc3d7b9ac2743c2cc57452967a (patch) | |
tree | 636f36b7ed93302808cf606f96f3ce5071a190c2 | |
parent | cd059db40637660b38b00ecf77d94e3e79cf73a7 (diff) | |
download | midipix_build-ed295a65693b47cc3d7b9ac2743c2cc57452967a.tar.bz2 midipix_build-ed295a65693b47cc3d7b9ac2743c2cc57452967a.tar.xz |
Exclude ${WORKDIR}/ptycon/.git from the source tarball.
-rw-r--r-- | 999.tarballs.build | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/999.tarballs.build b/999.tarballs.build index 531ef52b..94accaf5 100644 --- a/999.tarballs.build +++ b/999.tarballs.build @@ -2,8 +2,12 @@ # . ./build.vars and set -o errexit -o noglob are assumed. # -log_msg info "Building distribution tarballs..."; -cd ${PREFIX}; +if [ ${ARG_TARBALL:-0} -eq 0 ]; then + exit; +else + log_msg info "Building distribution tarballs..."; + cd ${PREFIX}; +fi; if [ "${TARBALL_SUFFIX}" = "bz2" ]; then if [ -n "$(which pbzip2 2>/dev/null)" ]; then TARBALL_COMPRESS_CMD="pbzip2"; @@ -81,7 +85,9 @@ if [ "${BUILD}" = "debug" ]; then log_msg info "Building source tarball..."; tar -cpf - $(find tmp -mindepth 2 -maxdepth 2 \ -not -path tmp/.\* \ - -not -path tmp/ntctty/.git -not -path tmp/psxscl/.git) |\ + -not -path tmp/ntctty/.git \ + -not -path tmp/psxscl/.git \ + -not -path tmp/ptycon/.git) |\ ${TARBALL_COMPRESS_CMD} ${TARBALL_COMPRESS_ARGS} -c > ${TARBALL_SRC_FNAME}; log_msg info "Finished building source tarball."; if [ -x "$(which gpg 2>/dev/null)" -a -n "${TARBALL_SRC_SIGN_GPG_KEY}" ] &&\ |