2024-04-12 02:21:16 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
check_return_value () {
|
|
|
|
if [ $1 != 0 ] ; then
|
|
|
|
exit $1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
cd $1
|
2024-05-28 02:53:54 +00:00
|
|
|
|
|
|
|
VERSION=`rpmspec -q --srpm --qf "%{version}" kyotocabinet.spec 2>/dev/null`
|
|
|
|
|
|
|
|
if test -d kyotocabinet-$VERSION-build;
|
|
|
|
then cd kyotocabinet-$VERSION-build;
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd kyotocabinet-$VERSION
|
|
|
|
|
2024-04-12 02:21:16 +00:00
|
|
|
./configure --prefix=/usr --disable-opt --enable-lzo --enable-lzma
|
|
|
|
check_return_value $?
|
|
|
|
make
|
|
|
|
check_return_value $?
|
|
|
|
make check
|
|
|
|
exit $?
|