标签:
#!/bin/bash
VersionPath="Mine/SettingController.m"
if ["$BUILD_NUMBER" = ""]||["$SVN_REVISION" = ""]
then
echo "version is null"
else
sed -i ‘‘ -e "s%[0-9].[0-9]\{1,10\}.[0-9]\{1,10\}%0.$BUILD_NUMBER.$SVN_REVISION%" $VersionPath
fi
ServerHeader="csfz_SERVER_URL "
ServerPath="Common/Constant.h"
Quotes=‘@"‘
Mquotes=‘"‘
if ["$SERVER_URL_PREFIX" = ""]
then
echo "server_url_prefix is null"
else
sed -i ‘‘ -e "s%csfz_SERVER_URL[[:blank:]]@.*%$ServerHeader$Quotes$SERVER_URL_PREFIX$Mquotes%" $ServerPath
fi
标签:
原文地址:http://www.cnblogs.com/guligei/p/4684157.html