]> git.eshelyaron.com Git - emacs.git/commit
Replace executable’s fingerprint in place
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 14 Apr 2019 23:31:24 +0000 (16:31 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 Apr 2019 00:06:09 +0000 (17:06 -0700)
commit5c2f94a182a1154766154040eb5b4b39275fd3b6
tree04ae030b12f1e993173fe33b34ea1975ec9340c7
parent661f44946d2bba21d16d718cf86372345c929a39
Replace executable’s fingerprint in place

* admin/merge-gnulib (GNULIB_MODULES): Add memmem-simple.
(AVOIDED_MODULES): Add memchr.
* configure.ac (HAVE_PDUMPER): AC_SUBST it, too, for use in makefiles.
* lib/Makefile.in (libgnu_a_OBJECTS): Add fingerprint.o.
* lib/fingerprint.c: New file.
* lib/memmem.c, lib/str-two-way.h, m4/memmem.m4: New files,
copied from Gnulib.
* lib/fingerprint.h: Rename from src/fingerprint.h.
* lib-src/make-fingerprint.c: Include limits.h, sys/stat.h,
fingerprint.h, intprops.h, min-max.h.
(SSIZE_MAX): New macro, if not already defined.
(main): Without -r, Replace the fingerprint in the input file
instead of generating a fingerprint.c.
* lib/Makefile.in (libgnu_a_OBJECTS): Add fingerprint.o.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* src/Makefile.in (HAVE_PDUMPER, MAKE_PDUMPER_FINGERPRINT):
New macros.
(temacs$(EXEEXT)): Use them to replace the fingerprint instead
of precalculating it.
(mostlyclean, ctagsfiles1): Do not worry about fingerprint.c.
13 files changed:
admin/merge-gnulib
configure.ac
lib-src/make-fingerprint.c
lib/Makefile.in
lib/fingerprint.c [new file with mode: 0644]
lib/fingerprint.h [new file with mode: 0644]
lib/gnulib.mk.in
lib/memmem.c [new file with mode: 0644]
lib/str-two-way.h [new file with mode: 0644]
m4/gnulib-comp.m4
m4/memmem.m4 [new file with mode: 0644]
src/Makefile.in
src/fingerprint.h [deleted file]