X-Git-Url: https://pwan.org/git/?p=certmaster.git;a=blobdiff_plain;f=Makefile;h=ec8cad3a07abcb5a14612388feeda5e9343cbe8d;hp=9cbfc49e6a7539558c491ed63d34068055947ac1;hb=f33325800add0c2ca5886cc78c05e007a5be5e8e;hpb=3f460ad56ec4b219cc36287c393c28475faa15c1 diff --git a/Makefile b/Makefile old mode 100755 new mode 100644 index 9cbfc49..ec8cad3 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -VERSION = $(shell echo `awk '{ print $$1 }' version`) -RELEASE = $(shell echo `awk '{ print $$2 }' version`) -NEWRELEASE = $(shell echo $$(($(RELEASE) + 1))) +VERSION = 0.25 +RELEASE = 1 +PYTHON = /usr/bin/python MESSAGESPOT=po/messages.pot @@ -14,23 +14,18 @@ all: rpms manpage: - pod2man --center="certmaster-request" --release="" ./docs/certmaster-inventory.pod | gzip -c > ./docs/certmaster-request.1.gz + pod2man --center="certmaster-request" --release="" ./docs/certmaster-request.pod | gzip -c > ./docs/certmaster-request.1.gz pod2man --center="certmaster" --release="" ./docs/certmaster.pod | gzip -c > ./docs/certmaster.1.gz pod2man --center="certmaster-ca" --release="" ./docs/certmaster-ca.pod | gzip -c > ./docs/certmaster-ca.1.gz + pod2man --center="certmaster-sync" --release="" ./docs/certmaster-sync.pod | gzip -c > ./docs/certmaster-sync.1.gz -messages: certmaster/minion/*.py - xgettext -k_ -kN_ -o $(MESSAGESPOT) certmaster/minion/*.py +messages: certmaster/*.py + touch $(MESSAGESPOT) + xgettext -k_ -kN_ -o $(MESSAGESPOT) certmaster/*.py sed -i'~' -e 's/SOME DESCRIPTIVE TITLE/certmaster/g' -e 's/YEAR THE PACKAGE'"'"'S COPYRIGHT HOLDER/2007 Red Hat, inc. /g' -e 's/FIRST AUTHOR , YEAR/Adrian Likins , 2007/g' -e 's/PACKAGE VERSION/certmaster $(VERSION)-$(RELEASE)/g' -e 's/PACKAGE/certmaster/g' $(MESSAGESPOT) - -bumprelease: - -echo "$(VERSION) $(NEWRELEASE)" > version - -setversion: - -echo "$(VERSION) $(RELEASE)" > version - build: clean - python setup.py build -f + $(PYTHON) setup.py build -f clean: -rm -f MANIFEST @@ -41,7 +36,7 @@ clean: -for d in $(DIRS); do ($(MAKE) -C $$d clean ); done clean_hard: - -rm -rf $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")/certmaster + -rm -rf $(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")/certmaster clean_harder: -rm -rf /etc/pki/certmaster @@ -52,7 +47,7 @@ clean_hardest: clean_rpms install: build manpage - python setup.py install -f + $(PYTHON) setup.py install -f install_hard: clean_hard install @@ -72,7 +67,7 @@ clean_rpms: -rpm -e certmaster sdist: messages - python setup.py sdist + $(PYTHON) setup.py sdist new-rpms: bumprelease rpms @@ -91,7 +86,6 @@ async: install rpms: build manpage sdist mkdir -p rpm-build cp dist/*.gz rpm-build/ - cp version rpm-build/ rpmbuild --define "_topdir %(pwd)/rpm-build" \ --define "_builddir %{_topdir}" \ --define "_rpmdir %{_topdir}" \