dot

packages and services management
Log | Files | Refs | README

commit ab3b43e0f78d7c6e3cbe79facbeafbc05bcc095f
parent b317011e2540e11ed5e79102d9ea7e37e7338526
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Thu,  3 Aug 2017 00:17:21 +0200

ex-vi/build: ex-vi compile in 21th century

Diffstat:
Mex-vi/build | 15+++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/ex-vi/build b/ex-vi/build @@ -1,4 +1,11 @@ -make -mkdir -p "$PREFIX/bin" "$PREFIX/share/man/man1" -cp ex "$PREFIX/bin" -ln -s ex "$PREFIX/bin/vi" +sed -r 's|^(#define +TUBECOLS *) 160|\1 1000|' config.h > config.h.tmp +mv config.h.tmp config.h + +awk -v VAR="$VAR" ' + /^INSTALL/ { sub("/usr/ucb/", "") } + /^PRESERVEDIR/ { sub("/var/preserve", VAR "/ex-vi") } + { print } +' Makefile > Makefile.tmp +mv Makefile.tmp Makefile + +make PREFIX="$PREFIX" install