pypi cleanups

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-10-25 19:07:50 +02:00
parent 37db1e8c2f
commit d20ae0596d
3 changed files with 30 additions and 50 deletions

1
.gitignore vendored
View file

@ -17,3 +17,4 @@ docs/man/man*/docbook-xsl.css
# Python: cache, distutils # Python: cache, distutils
__pycache__/ __pycache__/
MANIFEST MANIFEST
dist/

View file

@ -1,3 +1,3 @@
include docs/changelog docs/changelog-2.1 include docs/changelog docs/changelog-2.1
recursive-include docs/gfx *.png *.text recursive-include docs/gfx *.png *.text
recursive-include docs *.text recursive-include docs *.text *.html *.1 *.7

75
build
View file

@ -45,43 +45,12 @@ MAN7DSTDIR=${MANDIR}/man7
SPEECHESDIR=docs/speeches SPEECHESDIR=docs/speeches
case "$1" in case "$1" in
man) man)
set -e set -e
"$0" mangen "$0" mangen
"$0" mantype "$0" mantype
"$0" manbuild "$0" manbuild
;; ;;
pypi-manifest)
# init MANIFEST
echo README > MANIFEST
# bin
echo bin/cdist >> MANIFEST
# main source
find cdist -type f >> MANIFEST
# conf
find conf -type f >> MANIFEST
# docs
ls docs/changelog* >> MANIFEST
find docs/gfx -type f >> MANIFEST
find docs/man/ -type f -name \*.text >> MANIFEST
find docs/man/ -type f -name \*.text.sh >> MANIFEST
# other
find other/ -type f >> MANIFEST
;;
pypi)
$0 clean
$0 pypi-manifest
python3 setup.py sdist
;;
manbuild) manbuild)
trap abort INT trap abort INT
@ -119,6 +88,12 @@ case "$1" in
./docs/dev/releasechecklist ./docs/dev/releasechecklist
;; ;;
pypi)
$0 very-clean
$0 man
python3 setup.py sdist
;;
speeches) speeches)
cd "$SPEECHESDIR" cd "$SPEECHESDIR"
for speech in *tex; do for speech in *tex; do
@ -164,19 +139,23 @@ case "$1" in
done done
;; ;;
clean) clean)
rm -f ${MAN7DSTDIR}/cdist-reference.text rm -f ${MAN7DSTDIR}/cdist-reference.text
find "${MANDIR}" -mindepth 2 -type l \ find "${MANDIR}" -mindepth 2 -type l \
-o -name "*.1" \ -o -name "*.1" \
-o -name "*.7" \ -o -name "*.7" \
-o -name "*.html" \ -o -name "*.html" \
-o -name "*.xml" \ -o -name "*.xml" \
| xargs rm -f | xargs rm -f
find * -name __pycache__ | xargs rm -rf find * -name __pycache__ | xargs rm -rf
rm -f MANIFEST rm -f MANIFEST
;; ;;
very-clean)
$0 clean
rm -rf cache/
;;
test) test)
shift # skip t shift # skip t