Move run_template() to tmpl_funcs.sh.

--HG--
extra : convert_revision : b5dcd681b3faacde90a783a0c13493600f36a5a8
This commit is contained in:
Juan RP 2009-02-18 01:32:42 +01:00
parent 2c7f9d1330
commit 12d65cc30c
2 changed files with 10 additions and 10 deletions

View File

@ -25,16 +25,6 @@
. $XBPS_SHUTILSDIR/tmpl_funcs.sh . $XBPS_SHUTILSDIR/tmpl_funcs.sh
run_template()
{
local pkg="$1"
if [ "$pkgname" != "$pkg" ]; then
reset_tmpl_vars
. $XBPS_TEMPLATESDIR/$pkg/template
fi
}
# #
# Recursive function that installs all direct and indirect # Recursive function that installs all direct and indirect
# dependencies of a package. # dependencies of a package.

View File

@ -158,3 +158,13 @@ prepare_tmpl()
export PATH="$PATH:/usr/local/sbin" export PATH="$PATH:/usr/local/sbin"
fi fi
} }
run_template()
{
local pkg="$1"
if [ "$pkgname" != "$pkg" ]; then
reset_tmpl_vars
. $XBPS_TEMPLATESDIR/$pkg/template
fi
}