New option to report code status and release.

git-svn-id: http://yate.null.ro/svn/yate/trunk@1714 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2008-02-04 13:37:20 +00:00
parent 2ab1ec12c7
commit 47ade762ac
2 changed files with 7 additions and 1 deletions

View File

@ -39,6 +39,9 @@ module.yate: module.cpp
.B \-\-version
Reports the installed YATE version (in x.y.z format)
.TP
.B \-\-release
Reports the installed YATE code status (if not release) and release number
.TP
.B \-\-config
Returns the configuration files directory
.TP

View File

@ -4,7 +4,7 @@ ustr='Usage: yate-config [--cflags] [--includes] [--c-all]
[--ldflags] [--libs] [--ld-all] [--ld-nostrip] [--ld-strip]
[--config] [--modules] [--share]
[--helpdir] [--scripts] [--skins]
[--version]'
[--version] [--release]'
if [ "$#" = 0 ]; then
echo "$ustr"
exit 0
@ -26,6 +26,9 @@ while [ "$#" != 0 ]; do
--version)
echo "@PACKAGE_VERSION@"
;;
--release)
echo "@PACKAGE_STATUS@@PACKAGE_RELEASE@"
;;
--cflags)
echo "$s1"
;;