From dc801a11c8ef5d7c6abf6a330b1ed8626f9ab608 Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Sat, 12 Mar 2011 23:34:53 -0500 Subject: [PATCH] Instead of blindly, recursively copying the AppKit and Foundation directories, more intelligently copy only the *.j files we want. --- Tools/Documentation/Cappuccino.doxygen | 2 +- Tools/Documentation/make_headers.sh | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Tools/Documentation/Cappuccino.doxygen b/Tools/Documentation/Cappuccino.doxygen index f8c91e220..de7790f0c 100644 --- a/Tools/Documentation/Cappuccino.doxygen +++ b/Tools/Documentation/Cappuccino.doxygen @@ -651,7 +651,7 @@ RECURSIVE = YES # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. -EXCLUDE = AppKit.doc/Themes +EXCLUDE = # The EXCLUDE_SYMLINKS tag can be used select whether or not files or # directories that are symbolic links (a Unix filesystem feature) are excluded diff --git a/Tools/Documentation/make_headers.sh b/Tools/Documentation/make_headers.sh index 0717604e4..80885a682 100755 --- a/Tools/Documentation/make_headers.sh +++ b/Tools/Documentation/make_headers.sh @@ -10,11 +10,15 @@ if [ -d Foundation.doc ]; then rm -rf Foundation.doc fi -echo "Copying source files..." -cp -r AppKit AppKit.doc -cp -r Foundation Foundation.doc - echo "Processing source files..." +tar cf AppKit.doc.tar --exclude='_*' -s /^AppKit/AppKit.doc/ AppKit/*.j AppKit/**/*.j +tar xf AppKit.doc.tar +rm AppKit.doc.tar + +tar cf Foundation.doc.tar --exclude='_*' -s /^Foundation/Foundation.doc/ Foundation/*.j Foundation/**/*.j +tar xf Foundation.doc.tar +rm Foundation.doc.tar + find AppKit.doc -name *.j -exec sed -e '/@import.*/ d' -i '' {} \; find Foundation.doc -name *.j -exec sed -e '/@import.*/ d' -i '' {} \;