diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-11-17 11:34:31 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-11-17 11:34:31 -0200 |
commit | ca223571c8548fda2e6571daf497482d8d236362 (patch) | |
tree | 86daa0f8eba8222b7d5ff85c0b4e101795b7c450 /templater | |
parent | f6851134c07c74554437db5be4abb13cafafc1b6 (diff) | |
download | templater-ca223571c8548fda2e6571daf497482d8d236362.tar.gz templater-ca223571c8548fda2e6571daf497482d8d236362.tar.bz2 |
Rename __templater_ functions to templater_
Diffstat (limited to 'templater')
-rwxr-xr-x | templater | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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 :)" |