[Lunar-commits] CVS: theedge/var/lib/lunar/functions
postbuild.lunar, 1.11, 1.12
Auke Kok
sofar at lunar-linux.org
Mon Mar 29 21:14:33 GMT 2004
Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv22058/var/lib/lunar/functions
Modified Files:
postbuild.lunar
Log Message:
Make garbage *not* install doc/Makefile directories!!!
Index: postbuild.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/postbuild.lunar,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- postbuild.lunar 18 Mar 2004 12:16:55 -0000 1.11
+++ postbuild.lunar 29 Mar 2004 21:14:31 -0000 1.12
@@ -27,19 +27,24 @@
gather_docs() {
debug_msg "gather_docs ($@)"
- [ "$GARBAGE" == "on" ] || return 0
+ if [ "$GARBAGE" != "on" ] ; then
+ return
+ fi
DOC_DIR=$DOCUMENT_DIRECTORY/$MODULE
- mkdir -p $DOC_DIR
+ mkdir -p $DOC_DIR
if [ -d "$SOURCE_DIRECTORY" ] ; then
- ( cd $SOURCE_DIRECTORY && for FILE in \
- README* INSTALL* FAQ* CHAN* doc* DOC* *doc *sample* \
- conf SETUP NEWS Change* manual* Manual* ; do
- [ -e $FILE ] && {
+ (
+ cd $SOURCE_DIRECTORY
+ for FILE in \
+ README* INSTALL* FAQ* CHAN* doc* DOC* *doc *sample* \
+ conf SETUP NEWS Change* manual* Manual* ; do
+ # copy all but prune stuff which obviously is code
+ if [ -e $FILE -a ! -f $FILE/Makefile ] ; then
verbose_msg "installing docs: \"$DOC_DIR/$FILE\""
cp -ar $FILE $DOC_DIR 2> /dev/null
- }
+ fi
done
)
fi
More information about the Lunar-commits
mailing list