forked from buildbot/buildbot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test-dist.sh
40 lines (32 loc) · 934 Bytes
/
test-dist.sh
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
29
30
31
32
33
34
35
36
37
38
39
40
#! /bin/sh
# Make a source distribution, and verify that all files git knows about are
# also in the source dist
if ! test -d buildbot || ! test -d docs; then
echo "not in the buildbot base dir"
exit 1
fi
test -d dist || mkdir dist
existing=`ls -1 dist/ 2>/dev/null`
if test -n "$existing"; then
echo "dist files already exist:"
echo $existing
echo "OK to delete? [Y/n] "
read YN
if test -n "$YN" && test "$YN" != "y"; then
exit 1
fi
rm dist/*
fi
python setup.py sdist || exit 1
tar -ztf dist/*.tar.gz > distfiles || exit 1
for f in `git ls-files`; do
echo $f | grep -q "\.mailmap" && continue
echo $f | grep -q "\.git" && continue
echo $f | grep -q "^docs/PyCon" && continue
echo $f | grep -q "^twisted" && continue
echo $f | grep -q "^buildbot/broken_test" && continue
if ! grep -q $f distfiles; then
echo "NOT FOUND: $f";
fi
done
rm distfiles