diff options
Diffstat (limited to 'build_manifest.sh')
-rw-r--r-- | build_manifest.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/build_manifest.sh b/build_manifest.sh new file mode 100644 index 0000000..4f427ce --- /dev/null +++ b/build_manifest.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash + +cat > MANIFEST.tmp <<- EOM +asciidoc/*.py +asciidoc/**/* +doc/asciidoc.conf +doc/article-docinfo.xml +doc/customers.csv +doc/*.1 +doc/*.txt +doc/asciidoc.dict +tests/data/* +tests/testasciidoc.py +tests/testasciidoc.conf +*.sh +BUGS.txt +CHANGELOG.txt +configure +configure.ac +COPYRIGHT +Dockerfile +MANIFEST +MANIFEST.in +install-sh +INSTALL.txt +Makefile +Makefile.in +README.md +EOM + +rm -f MANIFEST +while read in; do + if [ ! -z "${in}" ]; then + ls -1Ad ${in} | grep -v ".pyc" | grep -v "__pycache__" >> MANIFEST + fi +done < MANIFEST.tmp +echo "MANIFEST" >> MANIFEST +rm -f MANIFEST.tmp |