libhangul/tests/make_check.sh

28 lines
390 B
Bash
Raw Normal View History

2021-06-21 03:19:27 +00:00
#!/bin/bash
set -x
check_return_value () {
if [ $1 != 0 ] ; then
exit $1
fi
}
cd $1
2024-05-28 04:53:10 +00:00
VERSION=`rpmspec -q --srpm --qf "%{version}" libhangul.spec 2>/dev/null`
if test -d libhangul-$VERSION-build;
then cd libhangul-$VERSION-build;
fi
cd libhangul-$VERSION
2021-06-21 03:19:27 +00:00
autoreconf -f -i -v
./configure --prefix=/usr
check_return_value $?
make
check_return_value $?
make check
exit $?