From ca223571c8548fda2e6571daf497482d8d236362 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 17 Nov 2017 11:34:31 -0200 Subject: Rename __templater_ functions to templater_ --- templater | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'templater') diff --git a/templater b/templater index 01ef1ae..ad24eb3 100755 --- a/templater +++ b/templater @@ -51,8 +51,8 @@ if [ -z "$PROJECT" ]; then echo "" echo "available modules:" echo "" - #__templater_implementations | xargs -L 6 | column -t -c 6 | sed -e 's/^/\t/' - for module in `__templater_implementations`; do + #templater_implementations | xargs -L 6 | column -t -c 6 | sed -e 's/^/\t/' + for module in `templater_implementations`; do echo -e "\t $module: `cat $SHARE/$module/description`" done echo "" @@ -60,27 +60,27 @@ if [ -z "$PROJECT" ]; then fi # Initialize -__templater_init +templater_init # Go to project folder cd $PROJECT &> /dev/null # Setup modules if [ -z "$MODULES" ]; then - for project in `__templater_implementations`; do - __templater_ask $project + for project in `templater_implementations`; do + templater_ask $project done else for module in $MODULES; do - if `__templater_implementations | grep -q "^$module"`; then + if `templater_implementations | grep -q "^$module"`; then #templater_$module $SHARE/$module/setup $SHARE else - __templater_echo "No such module $module, skipping" + templater_echo "No such module $module, skipping" fi done fi # Teardown cd $CWD -__templater_echo "Done processing the project :)" +templater_echo "Done processing the project :)" -- cgit v1.2.3