#得到编译次数
./version.sh
echo "#define COM_TIMES \\" >compile_times.h
cat .version >> compile_times.h
mv compile_times.h include/
#有点麻烦,也许有更好的办法
///version.sh
#! /bin/sh
if [ ! -f .version ] ;then
echo 1 > .version
else
tmp=`cat .version`
tmp=$[$tmp+1]
echo $tmp > .version
fi