aboutsummaryrefslogtreecommitdiff
path: root/templater
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-17 11:34:31 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-17 11:34:31 -0200
commitca223571c8548fda2e6571daf497482d8d236362 (patch)
tree86daa0f8eba8222b7d5ff85c0b4e101795b7c450 /templater
parentf6851134c07c74554437db5be4abb13cafafc1b6 (diff)
downloadtemplater-ca223571c8548fda2e6571daf497482d8d236362.tar.gz
templater-ca223571c8548fda2e6571daf497482d8d236362.tar.bz2
Rename __templater_ functions to templater_
Diffstat (limited to 'templater')
-rwxr-xr-xtemplater16
1 files changed, 8 insertions, 8 deletions
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 :)"