diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2015-02-02 10:11:22 +0000 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2015-02-02 10:11:22 +0000 |
commit | f3a03480a363be63066cabecf45f3d23191e9d85 (patch) | |
tree | 2b1505f7aad39ec1c75d3a71dc6f7384f5d870f7 | |
parent | c65bc9d741728b349859397bba2c769987899030 (diff) | |
download | fpGUI-f3a03480a363be63066cabecf45f3d23191e9d85.tar.xz |
script: FPC reference replaced with a variable to FPC binary
This means if we want to change the FPC binary we only need to edit
one line.
-rwxr-xr-x | src/build.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/build.sh b/src/build.sh index 8f90fdae..3d3394ac 100755 --- a/src/build.sh +++ b/src/build.sh @@ -1,6 +1,7 @@ #!/bin/bash -fpctarget=`fpc -iTP`-`fpc -iTO` +fpcbin=fpc +fpctarget=`$fpcbin -iTP`-`$fpcbin -iTO` #echo $fpctarget libpath='../lib/'$fpctarget @@ -12,7 +13,7 @@ if [ ! -d $libpath ]; then fi # Default build -fpc -dRELEASE -dX11 @extrafpc.cfg corelib/x11/fpgui_toolkit.pas +$fpcbin -dRELEASE -dX11 @extrafpc.cfg corelib/x11/fpgui_toolkit.pas # experimental AggPas-enabled Canvas under X11 -#fpc -dRELEASE -dX11 -dAGGCanvas @extrafpc.cfg corelib/x11/fpgui_toolkit.pas +#$fpcbin -dRELEASE -dX11 -dAGGCanvas @extrafpc.cfg corelib/x11/fpgui_toolkit.pas |