1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 12:40:36 +00:00
use pushd X/Y/Z ; popd instead of cd X/Y/Z ; cd ../../..
This commit is contained in:
Jussi Hagman 2020-01-13 16:08:59 +02:00 committed by GitHub
parent 204a241d34
commit 84f0deb441
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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