Dave Plater
785341d888
Added pre_checkin.sh to remove undistributable scansyn files from the source tarball. OBS-URL: https://build.opensuse.org/request/show/708050 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/csound?expand=0&rev=32
23 lines
539 B
Bash
23 lines
539 B
Bash
#! /bin/bash
|
|
|
|
vers=$(cat csound.spec|grep "Version: "|cut -b 17-23)
|
|
rm -f *.tar.*
|
|
wget https://github.com/csound/csound/archive/${vers}.tar.gz || exit 1
|
|
echo "\n\nUnpacking tarball\n"
|
|
tar -xf ${vers}.tar.gz
|
|
echo "Removing undistibutable files\n"
|
|
rm -f csound-${vers}/Opcodes/scansyn*
|
|
echo "Creating distributable tarball\n"
|
|
tar -acf csound-${vers}-distibutable.tar.xz csound-${vers}
|
|
echo "Cleaning up\n"
|
|
rm -rf csound-${vers} ${vers}.tar.gz
|
|
if ! test -e ${vers}.tar.gz;
|
|
then
|
|
echo "success"
|
|
osc ar
|
|
exit 0
|
|
else
|
|
echo "error"
|
|
exit 1
|
|
fi
|