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:
Juan RP
2009-10-12 22:30:56 +02:00
parent 8918861000
commit c6d3868b8b
3 changed files with 11 additions and 16 deletions

View File

@@ -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