This Scripts helps to compile from source on Linux in 2023
authorWim Stockman <wim@thinkerwim.org>
Fri, 10 Mar 2023 21:53:58 +0000 (22:53 +0100)
committerWim Stockman <wim@thinkerwim.org>
Fri, 10 Mar 2023 21:53:58 +0000 (22:53 +0100)
update-install.sh [new file with mode: 0755]

diff --git a/update-install.sh b/update-install.sh
new file mode 100755 (executable)
index 0000000..89e26d1
--- /dev/null
@@ -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<langinfo.h>' src/util.c
+gettextize 
+aclocal -I m4
+autoreconf --install
+