From 47ade762acb824bc54a1ac0128cd6a80251ad2a6 Mon Sep 17 00:00:00 2001 From: paulc Date: Mon, 4 Feb 2008 13:37:20 +0000 Subject: [PATCH] New option to report code status and release. git-svn-id: http://yate.null.ro/svn/yate/trunk@1714 acf43c95-373e-0410-b603-e72c3f656dc1 --- docs/man/yate-config.8 | 3 +++ yate-config.in | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/man/yate-config.8 b/docs/man/yate-config.8 index 9c1e8975..2890521e 100644 --- a/docs/man/yate-config.8 +++ b/docs/man/yate-config.8 @@ -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 diff --git a/yate-config.in b/yate-config.in index 4c33d037..fe068d09 100644 --- a/yate-config.in +++ b/yate-config.in @@ -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" ;;