1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-12 08:36:22 +01:00
strawberry-audio-player-win.../dist/maketarball.sh.in

21 lines
543 B
Bash
Raw Normal View History

2018-02-27 18:06:05 +01:00
#!/bin/bash
name=strawberry
version="@STRAWBERRY_VERSION_PACKAGE@"
2018-02-27 18:06:05 +01:00
root=$(cd "${0%/*}/.." && echo $PWD/${0##*/})
root=`dirname "$root"`
rootnoslash=`echo $root | sed "s/^\///"`
echo "Creating $name-$version.tar.xz..."
2018-04-01 19:41:23 +02:00
rm -f "$name-$version.tar.xz"
2018-02-27 18:06:05 +01:00
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" \
2018-03-31 16:25:21 +02:00
--exclude ".directory" \
2018-02-27 18:06:05 +01:00
"$root"