xbps-src: rename libexec helpers, they were too long.
This commit is contained in:
parent
8e9b2bcf42
commit
e78e0028ca
8 changed files with 22 additions and 23 deletions
24
xbps-src/libexec/getdeps-helper.sh.in
Normal file
24
xbps-src/libexec/getdeps-helper.sh.in
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
. @@XBPS_INSTALL_ETCDIR@@/xbps-src.conf
|
||||
. @@XBPS_INSTALL_SHAREDIR@@/shutils/init_funcs.sh
|
||||
|
||||
set_defvars
|
||||
|
||||
. $XBPS_SHUTILSDIR/tmpl_funcs.sh
|
||||
. $XBPS_SHUTILSDIR/common_funcs.sh
|
||||
|
||||
[ $# -ne 2 ] && echo "usage: $(basename $0) <run|build> <pkgname>" && exit 1
|
||||
|
||||
setup_subpkg_tmpl $2
|
||||
if [ "$1" = "run" ]; then
|
||||
[ -n "$run_depends" ] && echo "$run_depends"
|
||||
elif [ "$1" = "build" ]; then
|
||||
[ -n "$build_depends" ] && echo "$build_depends"
|
||||
else
|
||||
usage
|
||||
fi
|
||||
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue