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

25 lines
682 B
Bash
Raw Normal View History

#!/bin/bash
2010-01-17 23:12:17 +01:00
name=clementine
version="@CLEMENTINE_VERSION_SPARKLE@"
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.xz..."
tar -cJf $name-$version.tar.xz \
--transform "s,^$rootnoslash,$name-$version," \
--exclude-vcs \
--exclude "$root/bin/*" \
--exclude "$root/debian" \
--exclude "$root/dist/*.tar.gz" \
--exclude "$root/dist/*.tar.xz" \
--exclude "$root/CMakeLists.txt.user" \
"$root"
echo "Also creating ${name}_${version}~${deb_dist}.orig.tar.xz..."
cp "$name-$version.tar.xz" "${name}_${version}~${deb_dist}.orig.tar.xz"