Date:2012-03-07 03:16:48 (8 years 3 months ago)
Author:Xiangfu Liu
Commit:c71889d9da8ce4dc5242172bf7d37929c677d3cf
Message:compile-openwrt-xburst.sh: only zip the files when successful

Files: nanonote-files/data/qi_lb60/scripts/compile-openwrt-xburst.sh (1 diff)

Change Details

nanonote-files/data/qi_lb60/scripts/compile-openwrt-xburst.sh
8383mkdir -p ${IMAGES_DIR}/files
8484cp -a files/* ${IMAGES_DIR}/files/
8585
86(cd ${IMAGES_DIR}; \
87    grep -E "ERROR:\ package.*failed to build" BUILD_LOG | \
88        grep -v "package/kernel" > failed_packages.txt; \
89    bzip2 -z BUILD_LOG; \
90    bzip2 -z openwrt-xburst-qi_lb60-root.ubi; \
91)
92
9386if [ "${MAKE_RET}" != "0" ]; then
9487    echo "ERROR: Build failed! please refer to the BUILD_LOG file"
95    tail -n 100 ${IMAGES_DIR}/BUILD_LOG > \
96    ${IMAGES_DIR}/BUILD_LOG.`date +"%m%d%Y-%H%M"`.last100
88    tail -n 100 ${IMAGES_DIR}/BUILD_LOG > ${IMAGES_DIR}/BUILD_LOG.last100
9789    MSG="The build was FAILED"
9890    URL="http://fidelio.qi-hardware.com/~xiangfu/building/Nanonote/Ben/\
9991/${OPENWRT_DIR_NAME}-${DATE_TIME}"
10092else
93    (cd ${IMAGES_DIR} && \
94        grep -E "ERROR:\ package.*failed to build" BUILD_LOG | \
95            grep -v "package/kernel" > failed_packages.txt; \
96        bzip2 -z BUILD_LOG; \
97        bzip2 -z openwrt-xburst-qi_lb60-root.ubi; \
98    )
10199    mv ${IMAGES_DIR} ${DEST_DIR}
102100    MSG="The build was successful"
103101    URL="${IMAGES_URL}/${OPENWRT_DIR_NAME}-${DATE_TIME}"

Archive Download the corresponding diff file



interactive