1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-27 08:43:01 +01:00
strawberry-audio-player-win.../dist/maketarball.sh.in
2018-04-01 21:26:50 +02:00

21 lines
543 B
Bash
Executable File

#!/bin/bash
name=strawberry
version="@STRAWBERRY_VERSION_PACKAGE@"
root=$(cd "${0%/*}/.." && echo $PWD/${0##*/})
root=`dirname "$root"`
rootnoslash=`echo $root | sed "s/^\///"`
echo "Creating $name-$version.tar.xz..."
rm -f "$name-$version.tar.xz"
tar -cJf $name-$version.tar.xz \
--transform "s,^$rootnoslash,$name-$version," \
--exclude-vcs \
--exclude "$root/dist/*.tar" \
--exclude "$root/dist/*.tar.*" \
--exclude "$root/CMakeLists.txt.user" \
--exclude "$root/build" \
--exclude ".directory" \
"$root"