mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-26 17:42:53 +01:00
23 lines
638 B
Bash
Executable File
23 lines
638 B
Bash
Executable File
#!/bin/bash
|
|
|
|
name=clementine
|
|
version="@CLEMENTINE_VERSION_SPARKLE@"
|
|
deb_dist="@DEB_DIST@"
|
|
root=$(cd "${0%/*}/.." && echo $PWD/${0##*/})
|
|
root=`dirname "$root"`
|
|
rootnoslash=`echo $root | sed "s/^\///"`
|
|
|
|
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" \
|
|
--exclude "$root/CMakeLists.txt.user"
|
|
|
|
echo "Also creating ${name}_${version}~${deb_dist}.orig.tar.gz..."
|
|
cp "$name-$version.tar.gz" "${name}_${version}~${deb_dist}.orig.tar.gz"
|
|
|