1#!/usr/bin/env bash 2 3set -eufx 4 5# 6# Bail on OS X for testing this functionality. 7# 8if [ "$TRAVIS_OS_NAME" == "osx" ]; then 9 exit 0 10fi 11 12find . -name .deps -o -name '*.la' -o -name .libs -o -name Makefile -print0 | xargs -0 rm -vfr 13if [ "$TRAVIS_OS_NAME" == "osx" ]; then 14 ./autogen.sh --with-openssl=/usr/local/Cellar/openssl/1.0.2l --with-experimental --with-ext-scripts 15else 16 ./autogen.sh 17fi 18make 19make dist 20 21V=$(./evalrev) 22BN="aircrack-ng-$V" 23 24[ -d dist_build ] && rm -fr dist_build 25mkdir dist_build 26cd dist_build 27 28tar xzf ../$BN.tar.gz 29cd "$BN" 30if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./configure --with-openssl=/usr/local/Cellar/openssl/1.0.2l --with-experimental --with-ext-scripts; else ./configure --with-experimental --with-ext-scripts; fi 31make 32make check || { find test -name 'test-suite.log' -exec cat {} ';' && exit 1; } 33make DESTDIR=/tmp/ac install 34 35exit 0 36