1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00

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
// (yyyyMMdd)
//
#define SPROUT_VERSION_YYYYMMDD \
20170806
#define SPROUT_VERSION_YYYYMMDD 20170806
#endif // #ifndef SPROUT_VERSION_HPP

View file

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