mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-25 00:43:44 +00:00
update test.sh
This commit is contained in:
parent
2e0ff499ad
commit
aba3baf4aa
2 changed files with 7 additions and 6 deletions
|
@ -14,7 +14,6 @@
|
|||
// SPROUT_VERSION_YYYYMMDD
|
||||
// (yyyyMMdd)
|
||||
//
|
||||
#define SPROUT_VERSION_YYYYMMDD \
|
||||
20170806
|
||||
#define SPROUT_VERSION_YYYYMMDD 20170806
|
||||
|
||||
#endif // #ifndef SPROUT_VERSION_HPP
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue