summaryrefslogtreecommitdiffstats
path: root/dist
blob: 9c9762196a79de50c1503f1be58c035627bf3367 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

name=postgresql-setup-tests
tarball="$name.tar.gz"

test -e .git || exit 1

mkdir "$name"
while read line; do
    line=${line##postgresql-setup-tests/}
    cp -R "$line" "$name"
done < dist.include

tar -czf $tarball --wildcards -T dist.include
rm -rf $name