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