2021-06-28 06:42:33 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
check_return_value () {
|
|
|
|
if [ $1 != 0 ] ; then
|
|
|
|
exit $1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
cd $1
|
2024-05-31 05:31:27 +00:00
|
|
|
|
|
|
|
VERSION=`rpmspec -q --srpm --qf "%{version}" ibus-libzhuyin.spec 2>/dev/null`
|
|
|
|
|
|
|
|
if test -d ibus-libzhuyin-$VERSION-build;
|
|
|
|
then cd ibus-libzhuyin-$VERSION-build;
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd ibus-libzhuyin-$VERSION
|
|
|
|
|
2021-06-28 06:42:33 +00:00
|
|
|
./configure --prefix=/usr
|
|
|
|
check_return_value $?
|
|
|
|
make check
|
|
|
|
exit $?
|