2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 23:00:06 -07:00

mandoc: remove sed -i

This commit is contained in:
Dylan Araps 2021-07-03 21:04:59 +00:00
parent e30c184ef1
commit 20ca08706b
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

View File

@ -2,9 +2,14 @@
patch -p1 < mandoc-no-warn.patch
sed -i '/int dummy/d' compat_err.c
sed -i 's,"more -s","less",g' main.c
sed -i "s/CC=.*/CC='$CC'/" configure
# Change default pager.
sed 's,"more -s","less",g' main.c > _
mv -f _ main.c
# Use CC rather than broken default.
sed "s/CC=.*/CC=${CC:-cc}/" configure > _
mv -f _ configure
chmod +x configure
cat > configure.local <<EOF
PREFIX=/usr
@ -12,7 +17,7 @@ MANDIR=/usr/share/man
LIBDIR=/usr/lib
SBINDIR=/usr/bin
CC="${CC:-cc}"
CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fcommon"
LN="ln -sf"
EOF