summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions13
1 files changed, 13 insertions, 0 deletions
diff --git a/functions b/functions
index d8f60b9..f57e22d 100644
--- a/functions
+++ b/functions
@@ -37,6 +37,19 @@ msg () { [ "${QUIET}" = "n" ] && echo "${@}"; }
err () { echo "ERROR: ${@}" >&2; }
die () { echo "FATAL: ${@}" >&2; exit 1; }
+add_full_dir ()
+{
+ if [ "x${1}" != "x" ]; then
+ for f in ${1}/*; do
+ if [ -d "${f}" ]; then
+ add_full_dir "${f}"
+ else
+ add_file "${f}"
+ fi
+ done
+ fi
+}
+
add_dir ()
{
if [ "x${1}" != "x" -a "${1}" != "/" ]; then