1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-28 17:21:06 +01:00
strawberry-audio-player-win.../dist/scripts/maketarball.sh.in
2019-02-04 23:30:08 +01:00

36 lines
1015 B
Bash
Executable File

#!/bin/bash
name=strawberry
version="@STRAWBERRY_VERSION_PACKAGE@"
gitrev="@INCLUDE_GIT_REVISION@"
root=$(cd "${0%/*}/../.." && echo $PWD/${0##*/})
root=`dirname "$root"`
rootnoslash=`echo $root | sed "s/^\///"`
if ! [ "$gitrev" = "ON" ]; then
exclude_vcs="--exclude-vcs"
fi
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="*.tar" \
--exclude="*.tar.*" \
--exclude="*.bz" \
--exclude="*.bz2" \
--exclude="*.xz" \
--exclude=".directory" \
--exclude="*.spec" \
--exclude="*.nsi" \
--exclude="$root/CMakeLists.txt.user" \
--exclude="$root/build" \
--exclude="$root/scripts/maketarball.sh" \
--exclude="$root/dist/debian/changelog" \
--exclude="$root/dist/pacman/PKGBUILD" \
--exclude="$root/dist/macos/create-dmg.sh" \
--exclude="$root/dist/macos/Info.plist" \
--exclude="$root/dist/windows/windres.rc" \
"$root"