xbps-src: new target: show-var <varname> to print the value of <varname>.

This commit is contained in:
Juan RP 2014-04-09 09:52:48 +02:00
parent 615e601bdf
commit ec62e56ef6
1 changed files with 7 additions and 0 deletions

View File

@ -75,6 +75,9 @@ Targets: (only one may be specified)
show-shlib-requires <pkgname>
Show list of required shlibs for <pkgname>. Package must be installed into destdir.
show-var <var>
Prints the value of <var> 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
;;