forked from ungleich-public/cdist
pypi cleanups
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
37db1e8c2f
commit
d20ae0596d
3 changed files with 30 additions and 50 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -17,3 +17,4 @@ docs/man/man*/docbook-xsl.css
|
|||
# Python: cache, distutils
|
||||
__pycache__/
|
||||
MANIFEST
|
||||
dist/
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
include docs/changelog docs/changelog-2.1
|
||||
recursive-include docs/gfx *.png *.text
|
||||
recursive-include docs *.text
|
||||
recursive-include docs *.text *.html *.1 *.7
|
||||
|
|
77
build
77
build
|
@ -45,43 +45,12 @@ MAN7DSTDIR=${MANDIR}/man7
|
|||
SPEECHESDIR=docs/speeches
|
||||
|
||||
case "$1" in
|
||||
man)
|
||||
set -e
|
||||
"$0" mangen
|
||||
"$0" mantype
|
||||
"$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
|
||||
;;
|
||||
man)
|
||||
set -e
|
||||
"$0" mangen
|
||||
"$0" mantype
|
||||
"$0" manbuild
|
||||
;;
|
||||
|
||||
manbuild)
|
||||
trap abort INT
|
||||
|
@ -119,6 +88,12 @@ case "$1" in
|
|||
./docs/dev/releasechecklist
|
||||
;;
|
||||
|
||||
pypi)
|
||||
$0 very-clean
|
||||
$0 man
|
||||
python3 setup.py sdist
|
||||
;;
|
||||
|
||||
speeches)
|
||||
cd "$SPEECHESDIR"
|
||||
for speech in *tex; do
|
||||
|
@ -164,19 +139,23 @@ case "$1" in
|
|||
done
|
||||
;;
|
||||
|
||||
clean)
|
||||
rm -f ${MAN7DSTDIR}/cdist-reference.text
|
||||
find "${MANDIR}" -mindepth 2 -type l \
|
||||
-o -name "*.1" \
|
||||
-o -name "*.7" \
|
||||
-o -name "*.html" \
|
||||
-o -name "*.xml" \
|
||||
| xargs rm -f
|
||||
|
||||
find * -name __pycache__ | xargs rm -rf
|
||||
clean)
|
||||
rm -f ${MAN7DSTDIR}/cdist-reference.text
|
||||
find "${MANDIR}" -mindepth 2 -type l \
|
||||
-o -name "*.1" \
|
||||
-o -name "*.7" \
|
||||
-o -name "*.html" \
|
||||
-o -name "*.xml" \
|
||||
| xargs rm -f
|
||||
|
||||
rm -f MANIFEST
|
||||
;;
|
||||
find * -name __pycache__ | xargs rm -rf
|
||||
|
||||
rm -f MANIFEST
|
||||
;;
|
||||
very-clean)
|
||||
$0 clean
|
||||
rm -rf cache/
|
||||
;;
|
||||
|
||||
test)
|
||||
shift # skip t
|
||||
|
|
Loading…
Reference in a new issue