repository

Carbs Linux repositories
git clone git://git.carbslinux.org/repository
Log | Files | Refs | README | LICENSE

commit d9986c90f36593e8b8b446a91357da349431c51e
parent 1abc38d6f5d72d7bf263f0015d943c70a904be8a
Author: Cem Keylan <cem@ckyln.com>
Date:   Sat, 23 May 2020 17:25:50 +0300

mandoc: POSIX sed

Diffstat:
Mcore/mandoc/build | 12+++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/core/mandoc/build b/core/mandoc/build @@ -1,8 +1,14 @@ #!/bin/sh -e -sed -i '/int dummy/d' compat_err.c -sed -i 's,"more -s","less",g' main.c -sed -i "s/CC=.*/CC='$CC'/" configure +sed_i() { + for file; do :; done + sed "$@" > _ + cat _ > "$file"; rm -f _ +} + +sed_i '/int dummy/d' compat_err.c +sed_i 's,"more -s","less",g' main.c +sed_i "s/CC=.*/CC='$CC'/" configure cat > configure.local <<EOF PREFIX=/usr