shutils: remove tmpl_func.sh, moved to the xbps-templates repo.
xbps-src: added XBPS_COMMONVARSDIR that sources all .sh files in setup_tmpl(), this replaces tmpl_funcs.sh. --HG-- extra : convert_revision : xtraeme%40gmail.com-20091012203056-rtay2drhrwak4ldk
This commit is contained in:
@@ -30,6 +30,10 @@ info_tmpl()
|
||||
{
|
||||
local i=
|
||||
|
||||
for f in $(echo $XBPS_COMMONVARSDIR/*.sh); do
|
||||
[ -r ${f} ] && . ${f}
|
||||
done
|
||||
|
||||
echo "pkgname: $pkgname"
|
||||
echo "version: $version"
|
||||
[ -n "$revision" ] && echo "revision: $revision"
|
||||
@@ -95,7 +99,9 @@ setup_tmpl()
|
||||
|
||||
[ -z "$pkg" ] && msg_error "missing package name after target."
|
||||
|
||||
. $XBPS_SHUTILSDIR/tmpl_vars.sh
|
||||
for f in $(echo $XBPS_COMMONVARSDIR/*.sh); do
|
||||
[ -r ${f} ] && . ${f}
|
||||
done
|
||||
|
||||
if [ -f "$XBPS_TEMPLATESDIR/$pkg/template" ]; then
|
||||
if [ "$pkgname" != "$pkg" ]; then
|
||||
|
||||
Reference in New Issue
Block a user