Skip to content

Commit

Permalink
provide version of the library
Browse files Browse the repository at this point in the history
  • Loading branch information
svinota committed Nov 30, 2012
1 parent 2c0fb31 commit 1a3c4f3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Makefile
Expand Up @@ -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

Expand Down
4 changes: 0 additions & 4 deletions py9p/__init__.py

This file was deleted.

5 changes: 5 additions & 0 deletions 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.