[gimp/soc-2010-cage] app: Test for existance of git-version.h.tmp before comparing
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2010-cage] app: Test for existance of git-version.h.tmp before comparing
- Date: Wed, 30 Jun 2010 22:12:35 +0000 (UTC)
commit 1c7d96eeaff0e7dde7b00c74359612942a11e402
Author: Martin Nordholts <martinn src gnome org>
Date: Mon Jun 21 20:38:05 2010 +0200
app: Test for existance of git-version.h.tmp before comparing
Test for existance of git-version.h.tmp before comparing. Otherwise
cmp will complain when building tarballs.
app/Makefile.am | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/Makefile.am b/app/Makefile.am
index 4e19ede..414020a 100644
--- a/app/Makefile.am
+++ b/app/Makefile.am
@@ -282,7 +282,7 @@ git-version.h: update-git-version-header
elif test ! -f "$@"; then \
echo "#define GIMP_GIT_VERSION \"Unknown, shouldn't happen\"" > "$ tmp"; \
fi
- @if ( test -f "$@" && cmp "$ tmp" "$@" > /dev/null); then \
+ @if ( test -f "$ tmp" && test -f "$@" && cmp "$ tmp" "$@" > /dev/null ); then \
rm -f "$ tmp"; \
elif test -f "$ tmp"; then \
mv "$ tmp" "$@"; \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]