[vlc-devel] commit: Always remove revision.tmp ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Aug 30 09:51:48 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug 30 10:51:35 2009 +0300| [b11bbdf8c87db717327769a408f97c8bf2139fca] | committer: Rémi Denis-Courmont
Always remove revision.tmp
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b11bbdf8c87db717327769a408f97c8bf2139fca
---
src/Makefile.am | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index 2d922ba..888751f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -513,8 +513,11 @@ stamp-revision:
rm -f -- revision.tmp
(git --git-dir="$(top_srcdir)/.git/" describe --tags --long \
--always || echo exported) > revision.tmp
- diff revision.tmp revision.txt >/dev/null 2>&1 || \
- mv -f -- revision.tmp revision.txt
+ if diff revision.tmp revision.txt >/dev/null; then \
+ rm -f -- revision.tmp; \
+ else \
+ mv -f -- revision.tmp revision.txt; \
+ fi 2>&1
###############################################################################
# Unit/regression test
More information about the vlc-devel
mailing list