diff options
author | Michal Minar <miminar@redhat.com> | 2014-02-26 13:44:05 +0100 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2014-03-17 12:25:52 +0100 |
commit | c322f0f820e937861a043d9c8cf4df454edbca2e (patch) | |
tree | c90770674c0fdabfa9bec3d661e23930c34efa0c /commands/networking | |
parent | 79b1b0e1935f068517acad9fb36647a6e5879f53 (diff) | |
download | openlmi-scripts-c322f0f820e937861a043d9c8cf4df454edbca2e.tar.gz openlmi-scripts-c322f0f820e937861a043d9c8cf4df454edbca2e.tar.xz openlmi-scripts-c322f0f820e937861a043d9c8cf4df454edbca2e.zip |
unified script versions
All scripts have the same version which is set in single file (VERSION).
All setup.py and conf.py scripts containing these version numbers were
renamed to *.skel. These skeletons are then read by makefiles and proper
*.py scripts are generated out of them.
Diffstat (limited to 'commands/networking')
-rw-r--r-- | commands/networking/Makefile | 20 | ||||
-rw-r--r-- | commands/networking/doc/conf.py.skel (renamed from commands/networking/doc/conf.py) | 4 | ||||
-rw-r--r-- | commands/networking/setup.py.skel (renamed from commands/networking/setup.py) | 2 |
3 files changed, 4 insertions, 22 deletions
diff --git a/commands/networking/Makefile b/commands/networking/Makefile index 7d0a592..ee4552b 100644 --- a/commands/networking/Makefile +++ b/commands/networking/Makefile @@ -1,19 +1 @@ -PYTHONPATH?=$(HOME)/workspace/python_sandbox -DEVELOPDIR?=$(shell echo $(PYTHONPATH) | cut -d : -f 1) - -.PHONY: sdist develop upload_docs clean - -all: sdist - -sdist: - python setup.py sdist - -develop: - python setup.py develop --install-dir=$(DEVELOPDIR) - -upload_docs: - make -C doc html - python setup.py upload_docs - -clean: - make -C doc clean +include ../../Makefile.inc diff --git a/commands/networking/doc/conf.py b/commands/networking/doc/conf.py.skel index 5138a89..f1446f9 100644 --- a/commands/networking/doc/conf.py +++ b/commands/networking/doc/conf.py.skel @@ -48,9 +48,9 @@ copyright = u'2013, Radek Novacek' # built documents. # # The short X.Y version. -version = '0.0.2' +version = "@@VERSION@@" # The full version, including alpha/beta/rc tags. -release = '0.0.2' +release = "@@VERSION@@" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/commands/networking/setup.py b/commands/networking/setup.py.skel index b18c030..6dabfdd 100644 --- a/commands/networking/setup.py +++ b/commands/networking/setup.py.skel @@ -10,7 +10,7 @@ except IOError: setup( name='openlmi-scripts-networking', - version='0.0.2', + version='@@VERSION@@', description='LMI command for network administration.', long_description=long_description, author=u'Radek Novacek', |