1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 13:17:45 +00:00

Ports: Replace hardcoded Build/ paths with SERENITY_BUILD_DIR

Fixes #5710.
This commit is contained in:
Linus Groh 2021-03-11 19:50:44 +01:00 committed by Andreas Kling
parent f45e16a6a2
commit f318ab6bed
29 changed files with 65 additions and 74 deletions

View file

@ -3,12 +3,13 @@ set -eu
SCRIPT=`dirname $0`
export SERENITY_ROOT=`realpath $SCRIPT/../`
packagesdb="$SERENITY_ROOT/Build/packages.db"
export SERENITY_ARCH=i686
export SERENITY_BUILD_DIR="${SERENITY_ROOT}/Build/${SERENITY_ARCH}"
export CC=i686-pc-serenity-gcc
export CXX=i686-pc-serenity-g++
export PATH=$SERENITY_ROOT/Toolchain/Local/i686/bin:$PATH
export SERENITY_ARCH=i686
packagesdb="${SERENITY_BUILD_DIR}/packages.db"
MD5SUM=md5sum
@ -161,7 +162,7 @@ func_defined build || build() {
run make $makeopts
}
func_defined install || install() {
run make DESTDIR="$SERENITY_ROOT"/Build/Root $installopts install
run make DESTDIR="${SERENITY_BUILD_DIR}/Root" $installopts install
}
func_defined post_install || post_install() {
echo
@ -223,10 +224,10 @@ uninstall() {
for f in `cat plist`; do
case $f in
*/)
run rmdir "$SERENITY_ROOT/Build/Root/$f" || true
run rmdir "${SERENITY_BUILD_DIR}/Root/$f" || true
;;
*)
run rm -rf "$SERENITY_ROOT/Build/Root/$f"
run rm -rf "${SERENITY_BUILD_DIR}/Root/$f"
;;
esac
done