From 360098c2cf317f671edbe91c6649c100de94df9e Mon Sep 17 00:00:00 2001 From: andyque Date: Mon, 23 Mar 2015 14:35:38 +0800 Subject: [PATCH] fix doxygen document generate tool restore doxygen.config file unexpectly --- tools/release/generate_docs.sh | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/tools/release/generate_docs.sh b/tools/release/generate_docs.sh index 3b5753aa90..4647fbbce1 100755 --- a/tools/release/generate_docs.sh +++ b/tools/release/generate_docs.sh @@ -1,7 +1,5 @@ #!/bin/sh -#try to grab the doxygen version modified by me -#TODO: if the doxygen is not correct, we should install it manually CONFIG_NAME=doxygen if [ ! -z $1 ]; then @@ -9,22 +7,20 @@ if [ ! -z $1 ]; then fi sed -i .bak '/CC_DEPRECATED_ATTRIBUTE CC_DLL/,/NS_CC_END/d' ../../cocos/base/ccUTF8.h -# git diff > doc-patch.patch -# mv doc-patch.patch docs -#we need to generate the patch automatically and remove it after applying -# patch -fp1 < docs/doc-patch.patch - version=`grep -e 'return' ../../cocos/cocos2d.cpp | awk '{print substr($3,0,length($3)-2)}'` echo $version + cd ../../docs #we should read cocos2d.cpp and retrieve the version number sed -i .bak "s/3\.0/${version}/g" doxygen.config -rm doxygen.config.bak - doxygen ${CONFIG_NAME}.config -git checkout . ../cocos/base/ccUTF8.h +#restore the old doxygen.config +mv doxygen.config.bak doxygen.config + +#restore the old ccUTF8.h +mv ../cocos/base/ccUTF8.h.bak ../cocos/base/ccUTF8.h rm debug.txt