diff options
author | SARL ENR 68 <david@david.david> | 2015-09-15 21:32:47 +0200 |
---|---|---|
committer | SARL ENR 68 <david@david.david> | 2015-09-15 21:32:47 +0200 |
commit | 86ebca48a484122cc692199bb7524dcdb8addf72 (patch) | |
tree | bd39ae88e59e834cf51dfaf71996e8a77674c1fa | |
parent | 08f087b877610d284586177d60330f16fb5e33f9 (diff) | |
download | bm-86ebca48a484122cc692199bb7524dcdb8addf72.tar bm-86ebca48a484122cc692199bb7524dcdb8addf72.tar.gz bm-86ebca48a484122cc692199bb7524dcdb8addf72.tar.bz2 bm-86ebca48a484122cc692199bb7524dcdb8addf72.tar.xz bm-86ebca48a484122cc692199bb7524dcdb8addf72.zip |
Installion of bash-completion and man files directly into the setup.py
-rw-r--r-- | setup.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,6 +1,7 @@ #!/usr/bin/python from distutils.core import setup import re +import os verpat = re.compile("VERSION *= *\"(.*)\"") data = open("bm").read() @@ -9,6 +10,9 @@ if not m: sys.exit("error: can't find VERSION") VERSION = m.group(1) +bash_dir = "/etc/bash_completion.d" +man_dir = "share/man" + setup(name="bm", version = VERSION, description = "BuildManager - rpm package building helper", @@ -24,6 +28,10 @@ controling logs, rpm and srpm moving, filtering the list of files, ignoring given packages, completely cleaning the build directories, and many other features. """, + data_files=[ + (bash_dir, ["bash-completion/bm"]), + (os.path.join(man_dir, "man8"), ["man/bm.8"]), + ], packages = ["BuildManager"], scripts = ["bm", "bmclean"], ) |