Date:2012-03-14 02:32:09 (12 years 14 days ago)
Author:Xiangfu
Commit:669f921295c55f660cec01641c714d7f71cf87ba
Message:nanonote-files: compile-openwrt-xburst.sh: ignore build when there is no new commit

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

Change Details

nanonote-files/data/qi_lb60/scripts/compile-openwrt-xburst.sh
5353sed -i '/CONFIG_ALL/s/.*/CONFIG_ALL=y/' .config
5454yes "" | make oldconfig > /dev/null
5555
56echo "getting version numbers of used repositories..."
57HEAD_NEW=`${GET_FEEDS_VERSION_SH} ${OPENWRT_DIR}`
58HEAD_OLD=`cat ${IMAGES_DIR}/../${OPENWRT_DIR_NAME}.VERSIONS`
59if [ "${HEAD_NEW}" == "${HEAD_OLD}" ]; then
60    echo "No new commit, ignore build"
61    rm -f ${BUILD_LOG} ${VERSIONS_FILE}
62    rmdir ${IMAGES_DIR}
63    exit 0
64fi
65${GET_FEEDS_VERSION_SH} ${OPENWRT_DIR} > ${VERSIONS_FILE}
66cp ${VERSIONS_FILE} ${IMAGES_DIR}/../${OPENWRT_DIR_NAME}.VERSIONS
5667
5768echo "copy files, create VERSION, link dl folder, last prepare..."
5869rm -f files && ln -s feeds/qipackages/nanonote-files/data/qi_lb60/files/
...... 
7283MAKE_RET="$?"
7384
7485
75echo "getting version numbers of used repositories..."
76${GET_FEEDS_VERSION_SH} ${OPENWRT_DIR} > ${VERSIONS_FILE}
77
78
7986echo "copy all files to IMAGES_DIR..."
8087cp .config ${IMAGES_DIR}/config
8188cp build_dir/linux-xburst_qi_lb60/linux-*/.config ${IMAGES_DIR}/kernel.config

Archive Download the corresponding diff file



interactive