/pidgin/main: 3d96648efd41: Don't attempt to diff package_revisi...

Mark Doliner <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 3d96648efd4198360eb6c2f8ab002c56cabbdf14
Author:	 Mark Doliner <[email protected]>
Date:	 2014-06-22 23:48 -0700
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/3d96648efd41

Description:

Don't attempt to diff package_revision_raw.txt if it doesn't exist.
Just mv the new file into place.

diffstat:

 Makefile.am |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/Makefile.am b/Makefile.am
--- a/Makefile.am
+++ b/Makefile.am
@@ -117,7 +117,7 @@ package_revision_raw.txt: .FORCE
 	(hg --cwd $(srcdir) id -i --debug) 2>/dev/null >[email protected] \
 	|| rm -f [email protected]
 	$(AM_V_at)if test -f [email protected]; then \
-		if ! diff $@ [email protected] > /dev/null; then \
+		if ! test -f "$@" || ! diff "$@" "$@".new > /dev/null ; then \
 			mv [email protected] $@; \
 		else \
 			rm [email protected]; \
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.