]> err.no Git - yubikey-personalization/blob - build-and-test.sh
Merge tag 'v1.15.1'
[yubikey-personalization] / build-and-test.sh
1 #!/bin/sh
2
3 set -e
4 set -x
5
6 autoreconf -i
7
8 if [ "x$LIBUSB" = "xwindows" ]; then
9     ./configure --with-backend=stub
10     touch ChangeLog
11     make dist
12
13     if [ "x$ARCH" = "x32" ]; then
14         export CC=i686-w64-mingw32-gcc
15     else
16         export CC=x86_64-w64-mingw32-gcc
17     fi
18     make -f ykpers4win.mk ykpers4win${ARCH} `grep ^VERSION Makefile|sed 's/ = /=/'`
19 else
20     ./configure --with-backend=$LIBUSB
21     make check
22 fi