Clementine-audio-player-Mac.../dist/maketarball.sh.in

23 lines
637 B
Bash
Raw Normal View History

#!/bin/bash
2010-01-17 23:12:17 +01:00
name=clementine
2011-01-03 15:21:10 +01:00
version="@CLEMENTINE_VERSION_RPM@"
deb_version="@CLEMENTINE_VERSION_DEB@"
deb_dist="@DEB_DIST@"
root=$(cd "${0%/*}/.." && echo $PWD/${0##*/})
root=`dirname "$root"`
rootnoslash=`echo $root | sed "s/^\///"`
2010-01-17 23:12:17 +01:00
echo "Creating $name-$version.tar.gz..."
tar -czf $name-$version.tar.gz "$root" \
--transform "s,^$rootnoslash,$name-$version," \
--exclude-vcs \
--exclude "$root/bin/*" \
--exclude "$root/debian" \
--exclude "$root/dist/*.tar.gz"
echo "Also creating ${name}_${deb_version}~${deb_dist}.orig.tar.gz..."
2011-01-08 18:18:32 +01:00
cp "$name-$version.tar.gz" "${name}_${deb_version}~${deb_dist}.orig.tar.gz"