xbps-src: new target: show-var <varname> to print the value of <varname>.
This commit is contained in:
parent
615e601bdf
commit
ec62e56ef6
1 changed files with 7 additions and 0 deletions
7
xbps-src
7
xbps-src
|
@ -75,6 +75,9 @@ Targets: (only one may be specified)
|
||||||
show-shlib-requires <pkgname>
|
show-shlib-requires <pkgname>
|
||||||
Show list of required shlibs for <pkgname>. Package must be installed into destdir.
|
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
|
zap
|
||||||
Removes a masterdir but preserving ccache, distcc and host directories.
|
Removes a masterdir but preserving ccache, distcc and host directories.
|
||||||
|
|
||||||
|
@ -559,6 +562,10 @@ show-shlib-requires)
|
||||||
read_pkg
|
read_pkg
|
||||||
show_pkg_shlib_requires
|
show_pkg_shlib_requires
|
||||||
;;
|
;;
|
||||||
|
show-var)
|
||||||
|
eval value="\${$XBPS_TARGET_PKG}"
|
||||||
|
echo $value
|
||||||
|
;;
|
||||||
zap)
|
zap)
|
||||||
masterdir_zap
|
masterdir_zap
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue