summaryrefslogtreecommitdiff
path: root/build_manifest.sh
blob: b9d43bd44e71f3ad9060482aa2a2bab357b6efb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env bash

cat > MANIFEST.tmp <<- EOM
asciidoc/*.py
asciidoc/resources/**/*
asciidoc/resources/*.conf
doc/asciidoc.conf
doc/article-docinfo.xml
doc/customers.csv
doc/*.1
doc/*.txt
doc/asciidoc.dict
images/*
tests/data/*
tests/inputs/*
tests/*.py
tests/testasciidoc.conf
*.sh
BUGS.adoc
CHANGELOG.adoc
configure.ac
COPYRIGHT
Dockerfile
install-sh
INSTALL.adoc
LICENSE
MANIFEST.in
Makefile.in
README.md
setup.py
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