[Python-apps-commits] r2433 - in packages/mercurial/trunk/debian (rules)
vdanjean at users.alioth.debian.org
vdanjean at users.alioth.debian.org
Wed Feb 18 15:51:36 UTC 2009
Date: Wednesday, February 18, 2009 @ 15:51:35
Author: vdanjean
Revision: 2433
mercurial/__version__.py must be saved before python cleanup is called in the clean target
Modified:
packages/mercurial/trunk/debian/rules
Modified: packages/mercurial/trunk/debian/rules
===================================================================
--- packages/mercurial/trunk/debian/rules 2009-02-17 20:00:30 UTC (rev 2432)
+++ packages/mercurial/trunk/debian/rules 2009-02-18 15:51:35 UTC (rev 2433)
@@ -1,6 +1,11 @@
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
+clean::
+ # Keep current mercurial version
+ # (must be done BEFORE the *.mk includes)
+ cp -a mercurial/__version__.py mercurial/__version__.py.save
+
DEB_PYTHON_SYSTEM=pysupport
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
@@ -47,10 +52,8 @@
$(MAKE) -C doc man
clean::
- # Keep current mercurial version
- cp -a mercurial/__version__.py mercurial/__version__.py.save
$(MAKE) clean
- # And retore it
+ # Restoring the version file saved at the begining of the clean
mv mercurial/__version__.py.save mercurial/__version__.py
$(RM) -rv tmp/
More information about the Python-apps-commits
mailing list