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
|
// 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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue