update test.sh

This commit is contained in:
bolero-MURAKAMI 2017-08-06 22:01:11 +09:00
parent 2e0ff499ad
commit aba3baf4aa
2 changed files with 7 additions and 6 deletions

View file

@ -14,7 +14,6 @@
// SPROUT_VERSION_YYYYMMDD // SPROUT_VERSION_YYYYMMDD
// (yyyyMMdd) // (yyyyMMdd)
// //
#define SPROUT_VERSION_YYYYMMDD \ #define SPROUT_VERSION_YYYYMMDD 20170806
20170806
#endif // #ifndef SPROUT_VERSION_HPP #endif // #ifndef SPROUT_VERSION_HPP

View file

@ -173,10 +173,12 @@ fi
if [ ${use_version} -ne 0 ]; then if [ ${use_version} -ne 0 ]; then
script_dir=$(cd $(dirname $0); pwd) script_dir=$(cd $(dirname $0); pwd)
version_path="${script_dir}/../../sprout/version.hpp" version_hpp_path="${script_dir}/../../sprout/version.hpp"
sprout_version_yyyymmdd=`head -n 18 ${version_path} | tail -n 1` sprout_version_yyyymmdd=`sed -n "s/[ \t]*#[ \t]*define[ \t]\+SPROUT_VERSION_YYYYMMDD[ \t]\+//p" ${version_hpp_path}`
sprout_copyright=`head -n 3 ${version_path} | tail -n 2` sprout_copyright=`sed -n "/\/\*=/,/=\*\//s/^[ \t]\+/ /p" ${version_hpp_path}`
echo "Sprout version (YYYYMMDD) = ${sprout_version_yyyymmdd}" echo "version:"
echo " Sprout version (YYYYMMDD) = ${sprout_version_yyyymmdd}"
echo "copyright:"
echo "${sprout_copyright}" echo "${sprout_copyright}"
exit 0 exit 0
fi fi