Kill run_template(), use setup_tmpl() instead.

--HG--
extra : convert_revision : 6aaf4f637d28f476e88c05ee8608e418642a01fa
This commit is contained in:
Juan RP
2009-11-23 05:30:04 +00:00
parent d9dc381cfd
commit dbb02a1930
6 changed files with 15 additions and 29 deletions

View File

@@ -250,18 +250,3 @@ set_tmpl_common_vars()
fi
SRCPKGDESTDIR=${XBPS_DESTDIR}/${sourcepkg}-${version}
}
run_template()
{
local pkg="$1"
if [ "$pkgname" != "$pkg" ]; then
reset_tmpl_vars
if [ ! -d $XBPS_SRCPKGDIR/$pkg -o \
! -f $XBPS_SRCPKGDIR/$pkg/template ]; then
msg_error "Cannot find $pkg build template file!"
fi
. $XBPS_SRCPKGDIR/$pkg/template
set_tmpl_common_vars
fi
}