aboutsummaryrefslogtreecommitdiff
path: root/core/mandoc
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-01-29 20:05:11 +0300
committerCem Keylan <cem@ckyln.com>2020-01-29 20:05:11 +0300
commit9086ea518e6642610c3ebe8404825df4f895171c (patch)
tree3dc603e14cdba23299610938b3852f0c10504f5b /core/mandoc
parent65e4bd520e062177a59b5bf3d3bdf85d6d032cab (diff)
downloadrepository-9086ea518e6642610c3ebe8404825df4f895171c.tar.gz
mandoc: remove -i from sed on build
Diffstat (limited to 'core/mandoc')
-rwxr-xr-xcore/mandoc/build5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/mandoc/build b/core/mandoc/build
index 11f1bfed..c04afc3c 100755
--- a/core/mandoc/build
+++ b/core/mandoc/build
@@ -1,7 +1,8 @@
#!/bin/sh -e
-sed -i 's,"more -s","less",g' main.c
-sed -i "s/CC=.*/CC='$CC'/" configure
+sed 's,"more -s","less",g' main.c > main.c.bak && mv main.c.bak main.c
+sed "s/CC=.*/CC='$CC'/" configure > configure.bak && mv configure.bak configure
+chmod +x configure
cat > configure.local <<EOF
PREFIX=/usr