in fetch-cross-compiler.sh, stop if required piece failed to download
This commit is contained in:
Regular → Executable
+13
-1
@@ -66,7 +66,7 @@ fi
|
|||||||
|
|
||||||
if [ ! -d djgpp/i586-pc-msdosdjgpp ]; then
|
if [ ! -d djgpp/i586-pc-msdosdjgpp ]; then
|
||||||
tar xjf "$DJGPP_FILE"
|
tar xjf "$DJGPP_FILE"
|
||||||
rm -f $DJGPP_FILE
|
#rm -f $DJGPP_FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# DOS-extender for use with djgpp
|
# DOS-extender for use with djgpp
|
||||||
@@ -105,10 +105,22 @@ if [ ! -d djgpp/djgpp-patch ]; then
|
|||||||
if [ "$(uname)" = "Darwin" ]; then
|
if [ "$(uname)" = "Darwin" ]; then
|
||||||
#Mac
|
#Mac
|
||||||
curl --output djlsr205.zip http://www.mirrorservice.org/sites/ftp.delorie.com/pub/djgpp/current/v2/djlsr205.zip
|
curl --output djlsr205.zip http://www.mirrorservice.org/sites/ftp.delorie.com/pub/djgpp/current/v2/djlsr205.zip
|
||||||
|
export cmdstatus=$?
|
||||||
else
|
else
|
||||||
wget --quiet --no-hsts http://www.mirrorservice.org/sites/ftp.delorie.com/pub/djgpp/current/v2/djlsr205.zip
|
wget --quiet --no-hsts http://www.mirrorservice.org/sites/ftp.delorie.com/pub/djgpp/current/v2/djlsr205.zip
|
||||||
|
export cmdstatus=$?
|
||||||
fi
|
fi
|
||||||
ls -l
|
ls -l
|
||||||
|
if [ $cmdstatus -eq 0 ]; then
|
||||||
|
echo "fetch of djgpp-patch was successful"
|
||||||
|
else
|
||||||
|
if [ -z "${TF_BUILD}" ]; then
|
||||||
|
echo "Unable to complete the build, exiting..."
|
||||||
|
else
|
||||||
|
echo "##vso[task.logissue type=warning;]Trouble downloading djgpp-patch"
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
mkdir -p src/libc/go32
|
mkdir -p src/libc/go32
|
||||||
unzip -p djlsr205.zip src/libc/go32/exceptn.S >src/libc/go32/exceptn.S
|
unzip -p djlsr205.zip src/libc/go32/exceptn.S >src/libc/go32/exceptn.S
|
||||||
patch -p0 -l -i ../../../sys/msdos/exceptn.S.patch
|
patch -p0 -l -i ../../../sys/msdos/exceptn.S.patch
|
||||||
|
|||||||
Reference in New Issue
Block a user