summaryrefslogtreecommitdiff
path: root/build-aux/dist.sh
blob: e50bdb7b4543c598937603c51cf3fd41633fd96c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

SOURCE_ROOT=$1
BUILD_ROOT=$2

$SOURCE_ROOT/build-aux/gitlog-to-changelog > $MESON_DIST_ROOT/ChangeLog

# Only osinfo-db-tools.spec is put into the tarball,
# otherwise rpmbuild -ta $tarball.tar.gz would fail
cp $BUILD_ROOT/libosinfo.spec $MESON_DIST_ROOT/

out="`git log --pretty=format:'%aN <%aE>' | sort -u`"
perl -p -e "s/#authorslist#// and print '$out'" < $SOURCE_ROOT/AUTHORS.in > $MESON_DIST_ROOT/AUTHORS