From: Wim Stockman Date: Fri, 10 Mar 2023 21:53:58 +0000 (+0100) Subject: This Scripts helps to compile from source on Linux in 2023 X-Git-Tag: v1.7.rc~5 X-Git-Url: http://git.savannah.gnu.org/gitweb/?p=enscript.git;a=commitdiff_plain;h=6f04a58d1abe9694c15dae8f7cfc817f727a404b;hp=0779ca6512bf93e8f8dfe53c1a3446adb2475acc This Scripts helps to compile from source on Linux in 2023 --- diff --git a/update-install.sh b/update-install.sh new file mode 100755 index 0000000..89e26d1 --- /dev/null +++ b/update-install.sh @@ -0,0 +1,17 @@ +# This Script modifies the necessaire files +# to be able to compile enscript from source found on git://git.savannah.gnu.org +# Tested to be used after the commit of 2018-03-17 +# Tested on Linux Arch, Linux Artix Artix +# Created by Wim Stockman - wim@thinkerwim.org - on 20230303 + +sed -i '/AC_FUNC_ALLOCA/a dnl its save to say that in 2023 all compilers support prototypes\nAC_DEFINE([PROTOTYPES], [1], [Define to 1 if your compiler supports function prototypes.])' configure.ac +sed -i '/AM_GNU_GETTEXT$/c AM_GNU_GETTEXT([external])' configure.ac +sed -i 's/intl\/Makefile//' configure.ac +sed -i 's/po\/Makefile.in//' configure.ac +sed -i 's/po\/Makefile//' configure.ac +sed -i 's/intl//' Makefile.am +sed -i '/include/a #include' src/util.c +gettextize +aclocal -I m4 +autoreconf --install +