summaryrefslogtreecommitdiff
path: root/Ports/bash
diff options
context:
space:
mode:
authorRobin Burchell <robin+git@viroteck.net>2019-05-28 10:25:39 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-28 11:03:18 +0200
commit335d0e52a4a31fddca0f5d3220598bde95ca06f1 (patch)
tree64e865fb19d45faa1fb0027058280fb659f1dba6 /Ports/bash
parent2b1a52745e136b22cde59ac8a75f7f3d1115abf6 (diff)
downloadserenity-335d0e52a4a31fddca0f5d3220598bde95ca06f1.zip
Ports: Replace run_command use in bash with a run_replace_in_file helper
This way, we don't (in the ports themselves) depend on perl as a public interface, which means if we ever have to, we can port to something else easier.
Diffstat (limited to 'Ports/bash')
-rwxr-xr-xPorts/bash/bash.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/Ports/bash/bash.sh b/Ports/bash/bash.sh
index 5cafa2344c..61bc2ad269 100755
--- a/Ports/bash/bash.sh
+++ b/Ports/bash/bash.sh
@@ -18,8 +18,8 @@ function configure() {
}
function build() {
# Avoid some broken cross compile tests...
- run_command perl -p -i -e "s/define GETCWD_BROKEN 1/undef GETCWD_BROKEN/" config.h
- run_command perl -p -i -e "s/define CAN_REDEFINE_GETENV 1/undef CAN_REDEFINE_GETENV/" config.h
+ run_replace_in_file "s/define GETCWD_BROKEN 1/undef GETCWD_BROKEN/" config.h
+ run_replace_in_file "s/define CAN_REDEFINE_GETENV 1/undef CAN_REDEFINE_GETENV/" config.h
run_make
}
function install() {