tomkiewicz

do-not-recompile

Feb 17th, 2014
305
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 >[email protected] \
  11. +   || rm -f [email protected]
  12. +   $(AM_V_at)if test -f [email protected]; then \
  13. +       if ! diff $@ [email protected] > /dev/null; then \
  14. +           mv [email protected] $@; \
  15. +       else \
  16. +           rm [email protected]; \
  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