-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
34 lines (29 loc) · 801 Bytes
/
Makefile
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
DOS2UNIX=$(shell which dos2unix || which fromdos)
clean:
find . -name \*.pyc -exec rm {} \;
find . -name coshsh.log -exec rm {} \;
rm -f coshsh.tgz
rm -rf tests/var/*
pack:
tar --exclude .git \
--exclude Changelog \
--exclude Makefile \
--exclude README \
--exclude README.asciidoc \
--exclude README.de.asciidoc \
--exclude TODO \
--exclude test \
--exclude coshsh.tgz \
--exclude coshsh.log \
-zcvf coshsh.tgz .
doc:
cp -p README.asciidoc docs/README && cd docs && asciidoc --unsafe -a toc -a toclevels=2 -a max-width=800 README
chmod 644 docs/README.html
$(DOS2UNIX) docs/README.html
$(RM) -f docs/README
# vi Changelog ->3.0.1
# vi setup.py ->3.0.1
# git commit -a -m "set pid_dir for OMD"
# git tag -a "3.0.1"
# git push
# python setup.py sdist upload