2010-06-03 16:52:37 +00:00
|
|
|
#!/bin/bash
|
2010-01-17 22:12:17 +00:00
|
|
|
|
|
|
|
name=clementine
|
2010-05-03 13:58:41 +00:00
|
|
|
version="@CLEMENTINE_VERSION@"
|
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
|
|
|
|
2010-06-03 16:52:37 +00:00
|
|
|
echo "Creating $name-$version.tar.gz..."
|
|
|
|
|
|
|
|
tar -czf $name-$version.tar.gz "$root" \
|
|
|
|
--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" \
|
|
|
|
--exclude "$root/dist/*.tar.gz"
|
|
|
|
|
|
|
|
echo "Also creating ${name}_$version.orig.tar.gz..."
|
|
|
|
cp "$name-$version.tar.gz" "${name}_$version.orig.tar.gz"
|
2010-03-22 23:11:13 +00:00
|
|
|
|