>From a4960594ead7904175cfa371e697ab3d1ab617b3 Mon Sep 17 00:00:00 2001 From: Assaf Gordon Date: Sun, 3 Jan 2021 01:41:12 -0700 Subject: [PATCH] build: restore build rules for manual page Reported by Kian Kasad in https://lists.gnu.org/r/sed-devel/2020-12/msg00000.html , (continued in https://lists.gnu.org/r/sed-devel/2021-01/msg00000.html ). * configure.ac: Enable buidling the manual page regardless of whether building from git or from a tarball. --- configure.ac | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac index c864fa2..4c701c1 100644 --- a/configure.ac +++ b/configure.ac @@ -297,12 +297,6 @@ AM_CONDITIONAL([CROSS_COMPILING], [test "$cross_compiling" = yes]) # Perl is needed for help2man AC_PATH_PROG([PERL], [perl]) -# building from tarball? -built_from_tarball=no -test -f "$srcdir"/.tarball-version && \ - ! test -d "$srcdir/.git" && \ - built_from_tarball=yes - # Can the man page be built? # Perl needed for help2man, executing sed needed for 'sed --help' can_rebuild_man_page=no @@ -313,14 +307,12 @@ test -n "$PERL" && \ # Build the man page when # building from git and rebuilding is possible. AM_CONDITIONAL([BUILD_MAN_PAGE], - [test "$built_from_tarball" = no && \ - test "$can_rebuild_man_page" = yes]) + [test "$can_rebuild_man_page" = yes]) # Create a stub man page instead of failing when # building from git and rebuilding is not possible. AM_CONDITIONAL([BUILD_DUMMY_MAN_PAGE], - [test "$built_from_tarball" = no && \ - test "$can_rebuild_man_page" = no]) + [test "$can_rebuild_man_page" = no]) # This is needed when building outside the source dir -- 2.20.1