From 84f0deb4415b3815f8751f0e99c0e7c5eacd7bb4 Mon Sep 17 00:00:00 2001 From: Jussi Hagman Date: Mon, 13 Jan 2020 16:08:59 +0200 Subject: [PATCH] cleanup use pushd X/Y/Z ; popd instead of cd X/Y/Z ; cd ../../.. --- setup_osx.command | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup_osx.command b/setup_osx.command index f7b38d763..d244c82f0 100755 --- a/setup_osx.command +++ b/setup_osx.command @@ -23,7 +23,7 @@ if [ -z "$(which g++)" ]; then fi echo "Building library 'LibQB'" -cd internal/c/libqb/os/osx +pushd internal/c/libqb/os/osx rm -f libqb_setup.o ./setup_build.command if [ ! -f ./libqb_setup.o ]; then @@ -31,10 +31,10 @@ if [ ! -f ./libqb_setup.o ]; then Pause exit 1 fi -cd ../../../../.. +popd echo "Building library 'FreeType'" -cd internal/c/parts/video/font/ttf/os/osx +pushd internal/c/parts/video/font/ttf/os/osx rm -f src.o ./setup_build.command if [ ! -f ./src.o ]; then @@ -42,13 +42,13 @@ if [ ! -f ./src.o ]; then Pause exit 1 fi -cd ../../../../../../../.. +popd echo "Building 'QB64' (~3 min)" cp ./internal/source/* ./internal/temp/ -cd internal/c +pushd internal/c g++ -w qbx.cpp libqb/os/osx/libqb_setup.o parts/video/font/ttf/os/osx/src.o -framework GLUT -framework OpenGL -framework Cocoa -o ../../qb64 -cd ../.. +popd echo "" if [ -f ./qb64 ]; then