darling/rpm/tarup.bsh

14 lines
568 B
Plaintext
Raw Normal View History

2018-01-22 21:21:39 +00:00
#!/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
if [ -e "${CWD}/SOURCES/darling-macho-deps.tar.gz" ]; then
rm "${CWD}/SOURCES/darling-macho-deps.tar.gz"
fi
tar --transform "s|^\./|darling/|" -cf "${CWD}/SOURCES/darling.tar.gz" -C "${CWD}/.." --exclude=.git --exclude SOURCES --exclude SRPMS --exclude RPMS --exclude BUILD .
tar --transform "s|^\./|darling-macho-deps/|" -cf "${CWD}/SOURCES/darling-macho-deps.tar.gz" -C "${CWD}/../tools/rpm" .