From ec62e56ef63584786444f651427c725aab9e8739 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 9 Apr 2014 09:52:48 +0200 Subject: [PATCH] xbps-src: new target: show-var to print the value of . --- xbps-src | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xbps-src b/xbps-src index ababc74dd3c..ca6f09667f1 100755 --- a/xbps-src +++ b/xbps-src @@ -75,6 +75,9 @@ Targets: (only one may be specified) show-shlib-requires Show list of required shlibs for . Package must be installed into destdir. + show-var + Prints the value of if it's defined in xbps-src. + zap Removes a masterdir but preserving ccache, distcc and host directories. @@ -559,6 +562,10 @@ show-shlib-requires) read_pkg show_pkg_shlib_requires ;; +show-var) + eval value="\${$XBPS_TARGET_PKG}" + echo $value + ;; zap) masterdir_zap ;;