2010-06-03 16:52:37 +00:00
|
|
|
#!/bin/bash
|
2010-01-17 22:12:17 +00:00
|
|
|
|
|
|
|
name=clementine
|
2011-12-02 19:06:53 +00:00
|
|
|
version="@CLEMENTINE_VERSION_SPARKLE@"
|
2011-01-08 16:47:29 +00:00
|
|
|
deb_dist="@DEB_DIST@"
|
2010-06-03 16:52:37 +00:00
|
|
|
root=$(cd "${0%/*}/.." && echo $PWD/${0##*/})
|
|
|
|
root=`dirname "$root"`
|
|
|
|
rootnoslash=`echo $root | sed "s/^\///"`
|
2010-01-17 22:12:17 +00:00
|
|
|
|
2015-12-13 15:52:30 +11:00
|
|
|
echo "Creating $name-$version.tar.xz..."
|
2010-06-03 16:52:37 +00:00
|
|
|
|
2015-12-13 15:52:30 +11:00
|
|
|
tar -cJf $name-$version.tar.xz "$root" \
|
2010-06-03 16:52:37 +00:00
|
|
|
--transform "s,^$rootnoslash,$name-$version," \
|
|
|
|
--exclude-vcs \
|
2010-06-03 17:33:39 +00:00
|
|
|
--exclude "$root/bin/*" \
|
2010-06-03 16:52:37 +00:00
|
|
|
--exclude "$root/debian" \
|
2012-10-26 09:37:59 -07:00
|
|
|
--exclude "$root/dist/*.tar.gz" \
|
2015-12-13 15:52:30 +11:00
|
|
|
--exclude "$root/dist/*.tar.xz" \
|
2012-10-26 09:37:59 -07:00
|
|
|
--exclude "$root/CMakeLists.txt.user"
|
2010-06-03 16:52:37 +00:00
|
|
|
|
2015-12-13 15:52:30 +11:00
|
|
|
echo "Also creating ${name}_${version}~${deb_dist}.orig.tar.xz..."
|
|
|
|
cp "$name-$version.tar.xz" "${name}_${version}~${deb_dist}.orig.tar.xz"
|
2010-03-22 23:11:13 +00:00
|
|
|
|