dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
277664a
)
Portability fix: 'if ! diff ...' is not always supported in sh.
author
Peter Verthez
<Peter.Verthez@advalvas.be>
Wed, 23 Oct 2002 17:01:38 +0000
(17:01 +0000)
committer
Peter Verthez
<Peter.Verthez@advalvas.be>
Wed, 23 Oct 2002 17:01:38 +0000
(17:01 +0000)
Makefile.inc
patch
|
blob
|
history
diff --git
a/Makefile.inc
b/Makefile.inc
index dd724ba3fe1cf22ac74d16056f580cb6f11fadc0..aa01812cf7e657818cd3b060b17d25fef09da4e0 100644
(file)
--- a/
Makefile.inc
+++ b/
Makefile.inc
@@
-16,8
+16,10
@@
endef
then \
touch $(srcdir)/$@; \
fi
- if
! diff -q $< $(srcdir)/$@ > /dev/null
; \
+ if
diff $< $(srcdir)/$@ > /dev/null 2>&1
; \
then \
+ : ; \
+ else \
rm $(srcdir)/$@; \
cp $(srcdir)/$< $(srcdir)/$@; \
fi