Advertisement
tomkiewicz

do-not-recompile

Feb 17th, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.61 KB | None | 0 0
  1. diff --git a/Makefile.am b/Makefile.am
  2. --- a/Makefile.am
  3. +++ b/Makefile.am
  4. @@ -91,8 +91,15 @@
  5.  # successfully; the rm -f ensures both
  6.  package_revision_raw.txt:
  7.     $(AM_V_GEN)REAL_BLDDIR=$$PWD/$(top_builddir); \
  8. -   (hg --cwd $(srcdir) id -i --debug) 2>/dev/null >$@ \
  9. -   || rm -f $@
  10. +   (hg --cwd $(srcdir) id -i --debug) 2>/dev/null >$@.new \
  11. +   || rm -f $@.new
  12. +   $(AM_V_at)if test -f $@.new; then \
  13. +       if ! diff $@ $@.new > /dev/null; then \
  14. +           mv $@.new $@; \
  15. +       else \
  16. +           rm $@.new; \
  17. +       fi \
  18. +   fi
  19.  package_revision.h: package_revision_raw.txt
  20.     $(AM_V_GEN)if test -f $<; then \
  21.       echo "#define REVISION \"`cat $<`\"" > $@; \
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement