Browse Source

build MANIFEST ourselves

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
feature_files_export
Nico Schottelius 10 years ago
parent
commit
f25989d779
  1. 3
      .gitignore
  2. 3
      MANIFEST.in
  3. 57
      build

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

3
MANIFEST.in

@ -1,3 +0,0 @@
include docs/changelog docs/changelog-2.1
recursive-include docs/gfx
recursive-include docs *.mdwn

57
build

@ -45,12 +45,37 @@ MAN7DSTDIR=${MANDIR}/man7
SPEECHESDIR=docs/speeches
case "$1" in
man)
set -e
"$0" mangen
"$0" mantype
"$0" manbuild
;;
man)
set -e
"$0" mangen
"$0" mantype
"$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
@ -133,15 +158,17 @@ 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
;;
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
;;
test)
shift # skip t

Loading…
Cancel
Save