[gimp] app: Test for existance of git-version.h.tmp before comparing
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Test for existance of git-version.h.tmp before comparing
- Date: Mon, 21 Jun 2010 19:13:36 +0000 (UTC)
commit 8b344fa6adb32a79f1298020c81b2e6d046ac7a7
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]