#!/bin/sh
LC_ALL_TMP=$LC_ALL
LANG_TMP=$LANG
export LC_ALL='C'
export LANG="C"
Version=`svn info | grep -w "Revision:" | awk '{print $2}'`
sed -i -e 's/\#define SVN_VERSION.*$/\#define SVN_VERSION '$Version'/g' svn_version.h
export LC_ALL=$LC_ALL_TMP
export LANG=$LANG_TMP
阅读(1646) | 评论(0) | 转发(0) |