summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSARL ENR 68 <david@david.david>2015-09-15 21:32:47 +0200
committerSARL ENR 68 <david@david.david>2015-09-15 21:32:47 +0200
commit86ebca48a484122cc692199bb7524dcdb8addf72 (patch)
treebd39ae88e59e834cf51dfaf71996e8a77674c1fa
parent08f087b877610d284586177d60330f16fb5e33f9 (diff)
downloadbm-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.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 161e8a4..1a8319b 100644
--- a/setup.py
+++ b/setup.py
@@ -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"],
)