用Shell Script导出SVN版本间变更的文件

#!/bin/bash # 配置 # TODO 将配置信息保存在外部文件中以方便产生不同目标的导出。 START=9981 END=10054 VER=eom BUILD=v1 OUTPUT_PATH=builds/$VER/$BUILD/files/ # 清理 if [ -d "$OUTPUT_PATH" ]; then rm -rf $OUTPUT_PATH fi # 得到更改过的文件数量和文件名列表 # svn diff –summarize 返回"Status \t Filename" COUNT=`svn diff –summarize -r $START:$END | wc -l` Diff=`svn diff –summarize -r $START:$END` until [ $COUNT -lt "1" ] do # echo "$Diff" [...]

Posted in: Linux, Shell, SVN by Wang Xiaoxing 2 Comments , , , , , ,