#!/bin/sh # Now in module working directory do_build_result() { if [ "$VERSION" = "" ]; then echo "version not found" exit 3 fi rm -f ${MODULE}.tar.gz #清理mac os 下文件 rm -f $MODULE/.DS_Store rm -f $MODULE/*/.DS_Store tar -zcvf ${MODULE}.tar.gz $MODULE #md5value=`md5sum ${MODULE}.tar.gz|awk -F ' = ' '{print $2}'|sed -n 1p` md5value=`md5sum ${MODULE}.tar.gz|tr " " "\n"|sed -n 1p` cat > ./version < ./config.json.js < ./version < ./config.json.js <