1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 03:09:57 +01:00
Clementine-audio-player-Mac.../dist/maketarball.sh.in
2010-06-03 17:33:39 +00:00

21 lines
536 B
Bash
Executable File

#!/bin/bash
name=clementine
version="@CLEMENTINE_VERSION@"
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"
echo "Also creating ${name}_$version.orig.tar.gz..."
cp "$name-$version.tar.gz" "${name}_$version.orig.tar.gz"