Commit 8b344fa6 authored by Martin Nordholts's avatar Martin Nordholts
Browse files

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.
parent ae0ae9fc
......@@ -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" "$@"; \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment