diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2018-01-08 20:41:50 -0800 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2018-01-08 21:03:50 -0800 |
commit | ca0b6c09fac0d9144b5397cbf6cca3615ed085eb (patch) | |
tree | ea5c5e613b75621a8e73c56520d2f51d97014248 /appveyor_cygwin.bat | |
parent | d88c58eb5b84b04d6253720f630f3c7facc8fc52 (diff) | |
download | libusb-ca0b6c09fac0d9144b5397cbf6cca3615ed085eb.tar.gz |
Fix appveyor scripts for Cygwin and MinGW to build as intended
The sub-directory created to store the generated files and build objects
was not being used as intended, because each invocation of the bash
starts in the home directory. Fix this by changing to the intended
directory prior to each command invocation.
Also replace the invocation of autogen.sh with bootstrap.sh, since using
autogen.sh calls ./configure and we weren't using the results of that
work. Instead we call configure directly from the sub-directory while
enabling the examples and test builds (for Cygwin) as autogen.sh would do.
Also fix the invalid value for the --build option provided to the x64
build of MinGW.
Finally, propagate errors from each script command so that failures are
caught and reported.
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'appveyor_cygwin.bat')
-rw-r--r-- | appveyor_cygwin.bat | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/appveyor_cygwin.bat b/appveyor_cygwin.bat index 5e30794..a6fed52 100644 --- a/appveyor_cygwin.bat +++ b/appveyor_cygwin.bat @@ -1,14 +1,11 @@ echo on SetLocal EnableDelayedExpansion -if [%Configuration%] NEQ [Debug] goto releaseWin32 - -:releaseWin32 -if [%Platform%] NEQ [Win32] exit 0 if [%Configuration%] NEQ [Release] exit 0 -C:\cygwin\bin\bash -e -l -c "mkdir build-Win32-cygwin" -C:\cygwin\bin\bash -e -l -c ./autogen.sh -C:\cygwin\bin\bash -e -l -c "cd build-Win32-cygwin" -C:\cygwin\bin\bash -e -l -c "build-Win32-cygwin/../configure" -C:\cygwin\bin\bash -e -l -c "make -j4" -C:\cygwin\bin\bash -e -l -c "make install"
\ No newline at end of file +if [%Platform%] NEQ [Win32] exit 0 + +C:\cygwin\bin\bash -e -l -c "./bootstrap.sh" || exit /B +C:\cygwin\bin\bash -e -l -c "mkdir build-Win32-cygwin" || exit /B +C:\cygwin\bin\bash -e -l -c "cd build-Win32-cygwin && ../configure --enable-examples-build --enable-tests-build" || exit /B +C:\cygwin\bin\bash -e -l -c "cd build-Win32-cygwin && make -j4" || exit /B +C:\cygwin\bin\bash -e -l -c "cd build-Win32-cygwin && make install" || exit /B |