Skip to content
Browse files

provide version of the library

  • Loading branch information...
1 parent 2c0fb31 commit 1a3c4f31b30fa3c858904e6db0640a098845148c @svinota committed Dec 1, 2012
Showing with 9 additions and 8 deletions.
  1. +4 −4 Makefile
  2. +0 −4 py9p/__init__.py
  3. +5 −0 py9p/__init__.py.in
View
8 Makefile
@@ -20,25 +20,25 @@ endif
all:
@echo targets: dist, install
-clean:
+clean: clean-version
rm -rf dist build MANIFEST
find . -name "*pyc" -exec rm -f "{}" \;
- rm -f setup.py
check:
for i in py9p fuse9p/fuse9p; \
do pep8 $$i || exit 1; \
pyflakes $$i || exit 2; \
done
-setup.py:
+setup.py py9p/__init__.py:
gawk -v version=${version} -v release=${release} -v flavor=${flavor}\
-f configure.gawk $@.in >$@
clean-version:
rm -f setup.py
+ rm -f py9p/__init__.py
-update-version: setup.py
+update-version: setup.py py9p/__init__.py
force-version: clean-version update-version
View
4 py9p/__init__.py
@@ -1,4 +0,0 @@
-# coding=utf-8
-# Copyright © 2008 Andrey Mirtchovski
-
-__author__ = """Andrey Mirtchovski"""
View
5 py9p/__init__.py.in
@@ -0,0 +1,5 @@
+# coding=utf-8
+# Copyright © 2008 Andrey Mirtchovski
+# Copyright © 2012 Peter V. Saveliev
+
+version = "@RELEASE@"

0 comments on commit 1a3c4f3

Please sign in to comment.
Something went wrong with that request. Please try again.