From 98f701fb1b82f3e46790adcffb7bba4ae6e7cee8 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 21 Mar 2017 19:37:27 -0300 Subject: Enhance documentation and usage --- metadot | 41 +++++++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) (limited to 'metadot') diff --git a/metadot b/metadot index 79ca0bb..011091c 100755 --- a/metadot +++ b/metadot @@ -53,7 +53,7 @@ function metadot_backup { } # Find contents of a module -function metadot_find { +function __metadot_find { local module="$1" ( cd $MODULES/$module && find -name '*.link' -or -name '*.dot.link' ) | grep -v '.git/modules' | sed -e 's|./||' } @@ -68,7 +68,7 @@ function metadot_load { echo "Loading module $module..." - for file in `metadot_find $module`; do + for file in `__metadot_find $module`; do echo "Processing $file..." # Get the dirname, replacing string.dot with .string @@ -160,6 +160,11 @@ function metadot_update { # Basic usage function metadot_usage { echo "usage: $BASENAME