blob: 9a18ff2da9e8467e2c7579108dc045f0dfac7bed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/bash
set -e
set -o pipefail
if test "$1" = ""; then
echo "Version not provided" >&2
exit 1
fi
if ! test -d "$2"; then
echo "Source directory not provided" >&2
exit 1
fi
# generate tarball version
echo "$1" > "$MESON_DIST_ROOT/.tarball-version"
# add missing recorder files
(cd "$2" && ls -1 subprojects/spice-common/common/recorder/recorder.[ch] \
subprojects/spice-common/common/recorder/recorder_ring.[ch] | \
tar cf - -T -) | (cd "$MESON_DIST_ROOT" && exec tar xf -)
# generate THANKS file
{
echo "The spice-gtk team would like to thank the following contributors:"
echo
(cd "$2" && exec git log --format='%aN <%aE>') | sort -u
} > "$MESON_DIST_ROOT/THANKS"
|