ZG8gbm90aGluZyBhZnRlciAic3ZuIHVwZGF0ZSIgaWYgbGlzdC50eHQgbm90IG1vZGlmaWVkLgo=

This commit is contained in:
lovelywcm 2009-03-13 04:26:51 +00:00
parent 487b6c9e32
commit 20ad060b74

View File

@ -37,7 +37,14 @@ do
fi fi
done done
# get current revision number svn update &&
if [ "$(git diff)" == "" ]; then
echo "not modified.";
exit 0;
fi
# get self last changed revision number
oriLang=$LANG; export LANG="en_US"; oriLang=$LANG; export LANG="en_US";
curRevNum=$( svn info | gawk '/^Last Changed Rev:/ { print $4 }' ); curRevNum=$( svn info | gawk '/^Last Changed Rev:/ { print $4 }' );
export LANG=$oriLang; export LANG=$oriLang;
@ -45,12 +52,10 @@ export LANG=$oriLang;
# save local modification # save local modification
git diff > temp.patch && git diff > temp.patch &&
svn update &&
# get formated author and log information # get formated author and log information
log=$(svn log -r $curRevNum:HEAD) && log=$(svn log -r $curRevNum:HEAD) &&
log=$(echo $log | gawk -v RS='------------------------------------------------------------------------'\ log=$(echo $log | gawk -v RS='------------------------------------------------------------------------'\
'NR > 3 { if (NF > 10) printf "%s:%s;", $3, $NF; }' ) && 'NR > 2 { if (NF > 10) printf "%s:%s;", $3, $NF; }' ) &&
# convert from base64 # convert from base64
i=0 && i=0 &&