1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-15 02:11:35 +01:00
strawberry-audio-player-win.../dist/scripts/maketarball.sh.in

45 lines
1.3 KiB
Bash
Raw Normal View History

2018-02-27 18:06:05 +01:00
#!/bin/bash
name=strawberry
version="@STRAWBERRY_VERSION_PACKAGE@"
2018-07-01 01:29:52 +02:00
gitrev="@INCLUDE_GIT_REVISION@"
2018-07-03 17:51:52 +02:00
root=$(cd "${0%/*}/../.." && echo $PWD/${0##*/})
2018-02-27 18:06:05 +01:00
root=`dirname "$root"`
rootnoslash=`echo $root | sed "s/^\///"`
2018-07-01 01:29:52 +02:00
if ! [ "$gitrev" = "ON" ]; then
exclude_vcs="--exclude-vcs"
fi
2018-02-27 18:06:05 +01:00
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 \
2018-07-01 01:29:52 +02:00
--transform "s,^$rootnoslash,$name-$version," $exclude_vcs \
2020-04-09 02:32:17 +02:00
--exclude=".directory" \
2018-09-18 00:45:07 +02:00
--exclude="*.tar" \
--exclude="*.tar.*" \
--exclude="*.bz" \
--exclude="*.bz2" \
--exclude="*.xz" \
--exclude="*.spec" \
--exclude="*.nsi" \
2020-04-09 02:32:17 +02:00
--exclude="*.kdev4" \
--exclude=".vscode" \
2019-11-09 17:16:18 +01:00
--exclude="$root/.github" \
2019-04-02 18:46:04 +02:00
--exclude="$root/.travis.yml" \
2020-04-09 02:32:17 +02:00
--exclude="$root/.circleci" \
--exclude="$root/Dockerfile" \
2018-09-18 00:45:07 +02:00
--exclude="$root/CMakeLists.txt.user" \
--exclude="$root/.clang-format" \
2018-09-18 00:45:07 +02:00
--exclude="$root/build" \
2019-04-02 18:46:04 +02:00
--exclude="$root/zanata.xml" \
--exclude="$root/.zanata-cache" \
2019-09-23 22:23:30 +02:00
--exclude="$root/debian/changelog" \
--exclude="$root/dist/scripts/maketarball.sh" \
2020-04-25 01:59:21 +02:00
--exclude="$root/dist/unix/PKGBUILD" \
2019-02-04 23:30:08 +01:00
--exclude="$root/dist/macos/Info.plist" \
--exclude="$root/dist/windows/windres.rc" \
2019-09-23 22:23:30 +02:00
--exclude="$root/src/translations/translations.pot" \
2018-02-27 18:06:05 +01:00
"$root"