mirror of https://github.com/GNOME/gimp.git
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:
parent
ae0ae9fcb8
commit
8b344fa6ad
|
@ -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" "$@"; \
|
||||
|
|
Loading…
Reference in New Issue