Travis (Mac): better handling of dependent library version changes

This commit is contained in:
Charlie Fenton 2017-10-27 02:07:15 -07:00
parent 5967ee6299
commit 63d27c61ef
1 changed files with 8 additions and 0 deletions

View File

@ -116,6 +116,14 @@ download_and_build() {
# already built but not for correct architectures so force rebuild
doClean="-clean"
fi
else
# tell subsequent scripts to build everything from scratch
doClean="-clean"
# delete any FILEFLAGS for other versions of this library built previously
BASENAME="${DIRNAME%-*}"
rm -f "${PREFIX}/${BASENAME}"*
# delete any previous build of this library (may be redundant with -clean)
rm -f "${PREFIX}/lib/${PRODUCTNAME}"
fi
if [ ! -d ${DIRNAME} ]; then
if [ ! -e ${FILENAME} ]; then