1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:17:35 +00:00

Ports: Remove bashisms and switch all scripts to /bin/sh.

This commit is contained in:
Larkin Nickle 2019-06-04 21:21:24 +00:00 committed by Andreas Kling
parent 800242ed4e
commit d080f6e8dd
10 changed files with 64 additions and 64 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
PORT_DIR=bash
function fetch() {
fetch() {
run_fetch_git "https://git.savannah.gnu.org/git/bash.git"
# Add serenity as a system for configure
@ -13,16 +13,16 @@ function fetch() {
# Locale calls crash right now. LibC bug, probably.
run_patch disable-locale.patch -p1
}
function configure() {
configure() {
run_configure_autotools --disable-nls --without-bash-malloc
}
function build() {
build() {
# Avoid some broken cross compile tests...
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() {
install() {
run_make_install DESTDIR="$SERENITY_ROOT"/Root
}
source ../.port_include.sh
. ../.port_include.sh