ref: 33abbdeb9f28269d7706feaac90df812d06ee17b
parent: f2bf7ca0cec7946433610a32420428d16165946a
author: Fabian Greffrath <fabian@greffrath.com>
date: Mon Nov 18 09:09:48 EST 2019
travis: determine program prefix from config.h
--- a/.travis.sh
+++ b/.travis.sh
@@ -13,5 +13,6 @@
make -j4
make install DESTDIR=/tmp/whatever
make dist
- make -j4 -C quickcheck check SOURCE_PORT=$PWD/src/chocolate-doom
+ PREFIX=`sed -n '/PROGRAM_PREFIX/p' ${PWD}/config.h | cut -d '"' -f 2`
+ make -j4 -C quickcheck check SOURCE_PORT=$PWD/src/${PREFIX}doom
fi