mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-25 11:15:20 +02:00
nanonote: compile-openwrt-xburst.sh: only send message when success build
This commit is contained in:
parent
e2e4bcdd71
commit
4ae1eb1ac5
@ -97,24 +97,19 @@ cp -a files/* ${IMAGES_DIR}/files/
|
||||
grep -v "package/kernel" > failed_packages.txt; \
|
||||
)
|
||||
|
||||
if [ "${MAKE_RET}" != "0" ]; then
|
||||
echo "ERROR: Build failed! please refer to the BUILD_LOG file"
|
||||
tail -n 100 ${IMAGES_DIR}/BUILD_LOG > ${IMAGES_DIR}/BUILD_LOG.last100
|
||||
MSG="The build has FAILED"
|
||||
URL="http://fidelio.qi-hardware.com/~xiangfu/building/Nanonote/Ben\
|
||||
/${OPENWRT_DIR_NAME}-${DATE_TIME}"
|
||||
else
|
||||
if [ "${MAKE_RET}" == "0" ]; then
|
||||
(cd ${IMAGES_DIR} && \
|
||||
bzip2 -z openwrt-xburst-qi_lb60-root.ubi; \
|
||||
)
|
||||
mv ${IMAGES_DIR} ${DEST_DIR}
|
||||
MSG="The build was successful"
|
||||
URL="${IMAGES_URL}/${OPENWRT_DIR_NAME}-${DATE_TIME}"
|
||||
MSG="The build was successful: ${IMAGES_URL}/${OPENWRT_DIR_NAME}-${DATE_TIME}"
|
||||
echo -e "say #qi-hardware ${MSG} \nclose" \
|
||||
| nc turandot.qi-hardware.com 3858
|
||||
else
|
||||
echo "ERROR: Build failed! please refer to the BUILD_LOG file"
|
||||
tail -n 100 ${IMAGES_DIR}/BUILD_LOG > ${IMAGES_DIR}/BUILD_LOG.last100
|
||||
fi
|
||||
|
||||
(cd ${IMAGES_DIR} && bzip2 -z BUILD_LOG;)
|
||||
|
||||
echo -e "say #qi-hardware ${MSG}: ${URL} \nclose" \
|
||||
| nc turandot.qi-hardware.com 3858
|
||||
|
||||
echo "Done"
|
||||
|
Loading…
Reference in New Issue
Block a user