Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Jajcus/pyxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacek Konieczny <jajcus@jajcus.net>2003-08-15 20:16:05 +0400
committerJacek Konieczny <jajcus@jajcus.net>2003-08-15 20:16:05 +0400
commiteedea1c92ea98656fbd29834e1ecfec806b56a58 (patch)
treef307fe62b6529e20513f7d67beeb072518a1d899 /Makefile
parent86d595d16e8b89897887cbb18e48ae3b08f3f433 (diff)
- update version only when using CVS
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 102b0a8..8e67d56 100644
--- a/Makefile
+++ b/Makefile
@@ -11,14 +11,16 @@ all: version
cd examples && chmod a+x *.py
cd tests && ln -sf ../build/lib*/pyxmpp .
cd tests && chmod a+x *.py
-
+
version:
- if test -n "$(RELEASE)" ; then \
- SNAPSHOT="" ; \
- else \
- SNAPSHOT=.`find . -name "*.py" '!' -name "version.py" -printf '%TY%Tm%Td_%TH%TM\n' | sort -r | head -1` ; \
- fi ; \
- echo "version='$(BASE_VERSION)$$SNAPSHOT'" > pyxmpp/version.py ; \
+ if test -f "CVS/Entries" ; then \
+ if test -n "$(RELEASE)" ; then \
+ SNAPSHOT="" ; \
+ else \
+ SNAPSHOT=.`find . -name "*.py" '!' -name "version.py" -printf '%TY%Tm%Td_%TH%TM\n' | sort -r | head -1` ; \
+ fi ; \
+ echo "version='$(BASE_VERSION)$$SNAPSHOT'" > pyxmpp/version.py ; \
+ fi
dist: all
python setup.py sdist