Change-Id: I849ff131d824385f8dcd090144025ee1a0a68040
Signed-off-by: Yalei Wang <william.wangyalei@huawei.com>
echo "generate the rpm package"
rpmbuild -ba dpdk.spec --define "_sourcedir ${PWD}"
if [ $? -eq 0 ]; then
- echo "rpm build success"
+ echo "dpdk rpm build success"
else
- echo "rpm build error"
- exit
+ echo "dpdk rpm build error"
+ exit 1
fi
echo "install the rpm"
echo "generate the rpm package"
rpmbuild -ba dpdk.spec --define "_sourcedir ${PWD}"
if [ $? -eq 0 ]; then
- echo "rpm build success"
+ echo "dpdk rpm build success"
else
- echo "rpm build error"
- exit
+ echo "dpdk rpm build error"
+ exit 1
fi
echo "install the rpm"