2014-12-24 16:40:14 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
2015-03-17 11:26:33 +08:00
|
|
|
CONFIG_NAME=doxygen
|
|
|
|
if [ ! -z $1 ]; then
|
|
|
|
CONFIG_NAME=$1
|
|
|
|
fi
|
2014-12-24 16:40:14 +08:00
|
|
|
|
2022-07-15 19:17:01 +08:00
|
|
|
sed -i .bak '/AX_DEPRECATED_ATTRIBUTE AX_DLL/,/NS_AX_END/d' ../../core/base/ccUTF8.h
|
2014-12-24 16:40:14 +08:00
|
|
|
|
2022-07-09 22:23:34 +08:00
|
|
|
version=`grep -e 'return' ../../core/axis.cpp | awk '{print substr($3,0,length($3)-2)}'`
|
2014-12-24 16:40:14 +08:00
|
|
|
echo $version
|
2015-03-23 14:35:38 +08:00
|
|
|
|
2014-12-24 16:40:14 +08:00
|
|
|
cd ../../docs
|
2022-07-09 22:23:34 +08:00
|
|
|
#we should read axis.cpp and retrieve the version number
|
2014-12-24 16:40:14 +08:00
|
|
|
sed -i .bak "s/3\.0/${version}/g" doxygen.config
|
|
|
|
|
2015-03-17 11:26:33 +08:00
|
|
|
doxygen ${CONFIG_NAME}.config
|
2014-12-24 16:40:14 +08:00
|
|
|
|
2015-03-23 14:35:38 +08:00
|
|
|
#restore the old doxygen.config
|
|
|
|
mv doxygen.config.bak doxygen.config
|
|
|
|
|
|
|
|
#restore the old ccUTF8.h
|
2022-01-03 19:06:51 +08:00
|
|
|
mv ../core/base/ccUTF8.h.bak ../core/base/ccUTF8.h
|
2014-12-24 16:40:14 +08:00
|
|
|
|
|
|
|
rm debug.txt
|