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.
This commit is contained in:
Martin Nordholts 2010-06-21 20:38:05 +02:00
parent ae0ae9fcb8
commit 8b344fa6ad
1 changed files with 1 additions and 1 deletions

View File

@ -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" "$@"; \