New commits:
commit bc44c31d5f8b7fcfe01e6ae774356cf238c52c3d
Author: Andrew Stitt <astitt AT sourcemage.org>
Commit: Andrew Stitt <astitt AT sourcemage.org>
WHITESPACE_IFS=$' \t\n'
diff --git a/var/lib/sorcery/modules/build_api/common
b/var/lib/sorcery/modules/build_api/common
index 14b6616..4e35a79 100755
--- a/var/lib/sorcery/modules/build_api/common
+++ b/var/lib/sorcery/modules/build_api/common
@@ -145,7 +145,7 @@ ## Gathers all documentation files from
## them as part of the spell
##
#---------------------------------------------------------------------
-function real_gather_docs() {
+function real_gather_docs() { (
- for i in ${DOCS[@]}
- do
- cp -r $SOURCE_DIRECTORY/${i} $DOC_DIR 2>/dev/null
+ cd $SOURCE_DIRECTORY
+ shopt -s nullglob
+ for i in ${DOCS}; do
+ if test -f "$i"; then
+ file $i|grep -q executable && continue
+ cp $SOURCE_DIRECTORY/${i} $DOC_DIR 2>/dev/null
+ elif test -d "$i"; then
+ cp -r $SOURCE_DIRECTORY/${i} $DOC_DIR 2>/dev/null
+ fi
done
- # what is this here for and why isn't it part of the standard DOCS
- # variable?
- cp $SOURCE_DIRECTORY/*rc $DOC_DIR 2>/dev/null
-
# making installed docs readable for all users.
chmod -fR a+r $DOC_DIR