From 12d65cc30ceb86025156820d3fd1148a060774b0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 18 Feb 2009 01:32:42 +0100 Subject: [PATCH] Move run_template() to tmpl_funcs.sh. --HG-- extra : convert_revision : b5dcd681b3faacde90a783a0c13493600f36a5a8 --- shutils/builddep_funcs.sh | 10 ---------- shutils/tmpl_funcs.sh | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/shutils/builddep_funcs.sh b/shutils/builddep_funcs.sh index 982a0e76542..283f4486c0c 100644 --- a/shutils/builddep_funcs.sh +++ b/shutils/builddep_funcs.sh @@ -25,16 +25,6 @@ . $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 # dependencies of a package. diff --git a/shutils/tmpl_funcs.sh b/shutils/tmpl_funcs.sh index 2ec8de7343c..9b919e27b55 100644 --- a/shutils/tmpl_funcs.sh +++ b/shutils/tmpl_funcs.sh @@ -158,3 +158,13 @@ prepare_tmpl() export PATH="$PATH:/usr/local/sbin" fi } + +run_template() +{ + local pkg="$1" + + if [ "$pkgname" != "$pkg" ]; then + reset_tmpl_vars + . $XBPS_TEMPLATESDIR/$pkg/template + fi +}