2018-02-27 18:06:05 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
name=strawberry
|
2018-04-01 18:32:31 +02:00
|
|
|
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" \
|
2018-04-01 18:32:31 +02:00
|
|
|
--exclude "$root/build" \
|
2018-03-31 16:25:21 +02:00
|
|
|
--exclude ".directory" \
|
2018-02-27 18:06:05 +01:00
|
|
|
"$root"
|