mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-05 12:20:22 +00:00
cleanup
use pushd X/Y/Z ; popd instead of cd X/Y/Z ; cd ../../..
This commit is contained in:
parent
204a241d34
commit
84f0deb441
|
@ -23,7 +23,7 @@ if [ -z "$(which g++)" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Building library 'LibQB'"
|
echo "Building library 'LibQB'"
|
||||||
cd internal/c/libqb/os/osx
|
pushd internal/c/libqb/os/osx
|
||||||
rm -f libqb_setup.o
|
rm -f libqb_setup.o
|
||||||
./setup_build.command
|
./setup_build.command
|
||||||
if [ ! -f ./libqb_setup.o ]; then
|
if [ ! -f ./libqb_setup.o ]; then
|
||||||
|
@ -31,10 +31,10 @@ if [ ! -f ./libqb_setup.o ]; then
|
||||||
Pause
|
Pause
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
cd ../../../../..
|
popd
|
||||||
|
|
||||||
echo "Building library 'FreeType'"
|
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
|
rm -f src.o
|
||||||
./setup_build.command
|
./setup_build.command
|
||||||
if [ ! -f ./src.o ]; then
|
if [ ! -f ./src.o ]; then
|
||||||
|
@ -42,13 +42,13 @@ if [ ! -f ./src.o ]; then
|
||||||
Pause
|
Pause
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
cd ../../../../../../../..
|
popd
|
||||||
|
|
||||||
echo "Building 'QB64' (~3 min)"
|
echo "Building 'QB64' (~3 min)"
|
||||||
cp ./internal/source/* ./internal/temp/
|
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
|
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 ""
|
echo ""
|
||||||
if [ -f ./qb64 ]; then
|
if [ -f ./qb64 ]; then
|
||||||
|
|
Loading…
Reference in a new issue