darling/rpm/tarup.bsh
Andy Neff 8ac02960b1 Stop including the RPMS in the source tarball
Signed-off-by: Andy Neff <andy@visionsystemsinc.com>
2020-08-20 11:34:15 -04:00

9 lines
321 B
Bash
Executable File

#!/usr/bin/env bash
set -euxv
CWD="$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd)"
if [ -e "${CWD}/SOURCES/darling.tar.gz" ]; then
rm "${CWD}/SOURCES/darling.tar.gz"
fi
tar --transform "s|^\./|darling/|" -cf "${CWD}/SOURCES/darling.tar.gz" -C "${CWD}/.." --exclude=.git --exclude SOURCES --exclude SRPMS --exclude RPMS .