forked from ungleich-public/cdist
build MANIFEST ourselves
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
392ec3c5ed
commit
f25989d779
3 changed files with 44 additions and 19 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -14,5 +14,6 @@ docs/man/man*/docbook-xsl.css
|
|||
# Ignore cdist cache for version control
|
||||
/cache/
|
||||
|
||||
# Python / cache
|
||||
# Python: cache, distutils
|
||||
__pycache__/
|
||||
MANIFEST
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
include docs/changelog docs/changelog-2.1
|
||||
recursive-include docs/gfx
|
||||
recursive-include docs *.mdwn
|
27
build
27
build
|
@ -52,6 +52,31 @@ case "$1" in
|
|||
"$0" manbuild
|
||||
;;
|
||||
|
||||
pypi-manifest)
|
||||
: > MANIFEST
|
||||
# bin
|
||||
echo bin/cdist >> MANIFEST
|
||||
|
||||
# conf
|
||||
find conf >> MANIFEST
|
||||
|
||||
# docs
|
||||
ls docs/changelog* >> MANIFEST
|
||||
find docs/gfx >> MANIFEST
|
||||
find docs/man/ -name \*.text >> MANIFEST
|
||||
find docs/man/ -name \*.text.sh >> MANIFEST
|
||||
|
||||
# other
|
||||
find other/ >> MANIFEST
|
||||
|
||||
|
||||
;;
|
||||
|
||||
pypi)
|
||||
$0 pypi-manifest
|
||||
python3 setup.py sdist
|
||||
;;
|
||||
|
||||
manbuild)
|
||||
trap abort INT
|
||||
abort() {
|
||||
|
@ -141,6 +166,8 @@ case "$1" in
|
|||
-o -name "*.html" \
|
||||
-o -name "*.xml" \
|
||||
| xargs rm -f
|
||||
|
||||
find * -name __pycache__ | xargs rm -rf
|
||||
;;
|
||||
|
||||
test)
|
||||
|
|
Loading…
Reference in a new issue