[vim] 01/10: Revert "Support defining compilation date in $SOURCE_DATE_EPOCH"
James McCoy
jamessan at debian.org
Mon Aug 8 04:49:32 UTC 2016
This is an automated email from the git hooks/post-receive script.
jamessan pushed a commit to branch debian/sid
in repository vim.
commit 895bf814ccf6b7d84ff554e8ec21d0204906056e
Author: James McCoy <jamessan at debian.org>
Date: Sun Aug 7 15:34:50 2016 -0400
Revert "Support defining compilation date in $SOURCE_DATE_EPOCH"
This reverts commit f3d2750f9dcd625127c7f7f01b9f98cc5e38469f so that it
can be managed by gbp-pq instead.
Signed-off-by: James McCoy <jamessan at debian.org>
---
src/config.h.in | 3 ---
src/configure.in | 10 ----------
src/version.c | 6 ------
3 files changed, 19 deletions(-)
diff --git a/src/config.h.in b/src/config.h.in
index 86ee967..9d35e48 100644
--- a/src/config.h.in
+++ b/src/config.h.in
@@ -30,9 +30,6 @@
/* Define when __DATE__ " " __TIME__ can be used */
#undef HAVE_DATE_TIME
-/* Defined as the date of last modification */
-#undef BUILD_DATE
-
/* Define when __attribute__((unused)) can be used */
#undef HAVE_ATTRIBUTE_UNUSED
diff --git a/src/configure.in b/src/configure.in
index 994eaf2..279ed47 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -29,16 +29,6 @@ dnl in autoconf needs it, where it uses STDC_HEADERS.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
-dnl If $SOURCE_DATE_EPOCH is present in the environment, use that as the
-dnl "compiled" timestamp in :version's output. Attempt to get the formatted
-dnl date using GNU date syntax, BSD date syntax, and finally falling back to
-dnl just using the current time.
-if test -n "$SOURCE_DATE_EPOCH"; then
- DATE_FMT="%b %d %Y %H:%M:%S"
- BUILD_DATE=$(LC_ALL=C date -u -d "@$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || LC_ALL=C date -u -r "$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || LC_ALL=C date -u "+$DATE_FMT")
- AC_DEFINE_UNQUOTED(BUILD_DATE, ["$BUILD_DATE"])
-fi
-
dnl Check for the flag that fails if stuff are missing.
AC_MSG_CHECKING(--enable-fail-if-missing argument)
diff --git a/src/version.c b/src/version.c
index 064d6dd..42bb079 100644
--- a/src/version.c
+++ b/src/version.c
@@ -43,17 +43,11 @@ make_version(void)
* VAX C can't catenate strings in the preprocessor.
*/
strcpy(longVersion, VIM_VERSION_LONG_DATE);
-#ifdef BUILD_DATE
- strcat(longVersion, BUILD_DATE);
-#else
strcat(longVersion, __DATE__);
strcat(longVersion, " ");
strcat(longVersion, __TIME__);
-#endif
strcat(longVersion, ")");
}
-# elif defined(BUILD_DATE)
-char *longVersion = VIM_VERSION_LONG_DATE BUILD_DATE ")";
# else
char *longVersion = VIM_VERSION_LONG_DATE __DATE__ " " __TIME__ ")";
# endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vim/vim.git
More information about the pkg-vim-maintainers
mailing list