mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-23 00:34:22 +00:00
Update build-toolchain.bash
check the directories where the interfaces and libraries are installed to make sure they dont contain the '&' character, which breaks the build on linux. (some archives of the interfaces and libraries files, have them named as "Interfaces&Libraries")
This commit is contained in:
parent
58d8be11e1
commit
1afc72ad2d
@ -162,6 +162,18 @@ fi
|
|||||||
|
|
||||||
INTERFACES_DIR="$SRC/InterfacesAndLibraries"
|
INTERFACES_DIR="$SRC/InterfacesAndLibraries"
|
||||||
|
|
||||||
|
function verifyInterfaceDirNames()
|
||||||
|
{
|
||||||
|
printf "Searching for special characters in subdirs of $INTERFACES_DIR"
|
||||||
|
local found=`find "$INTERFACES_DIR" -name ".*" -print `
|
||||||
|
if [ "`echo $found | grep \&`" ]; then
|
||||||
|
echo "\n$found Contained special character &"
|
||||||
|
return 1 # failure
|
||||||
|
else
|
||||||
|
return 0 # success
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
function locateInterfaceThing()
|
function locateInterfaceThing()
|
||||||
{
|
{
|
||||||
local varname=$1
|
local varname=$1
|
||||||
@ -198,6 +210,15 @@ function explainInterfaces()
|
|||||||
|
|
||||||
echo "Looking for various files in $INTERFACES_DIR/..."
|
echo "Looking for various files in $INTERFACES_DIR/..."
|
||||||
|
|
||||||
|
if verifyInterfaceDirNames; then
|
||||||
|
echo "Directory name looks clean"
|
||||||
|
else
|
||||||
|
echo "Directory name contained special character & that would break build"
|
||||||
|
echo "Please install the Interfaces and Libraries files in a path under"
|
||||||
|
echo "$INTERFACES_DIR that does not contain the & character"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if locateInterfaceThing CONDITIONALMACROS_H ConditionalMacros.h; then
|
if locateInterfaceThing CONDITIONALMACROS_H ConditionalMacros.h; then
|
||||||
CINCLUDES=`dirname "$CONDITIONALMACROS_H"`
|
CINCLUDES=`dirname "$CONDITIONALMACROS_H"`
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user