From 8dd1d20a2d355238a05b834fe7e3ca186cb20633 Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Mon, 9 Aug 2010 15:41:00 -0400 Subject: [PATCH] Made sure to remove the .doc directories first, fixed exec --- Tools/Documentation/make_headers.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Tools/Documentation/make_headers.sh b/Tools/Documentation/make_headers.sh index 14bd4fdc3..a9f031b1a 100755 --- a/Tools/Documentation/make_headers.sh +++ b/Tools/Documentation/make_headers.sh @@ -2,10 +2,20 @@ # # NOTE: The working directory should be the main capp directory when this script is run +echo "Preprocessing source files..." + +if [ -d AppKit.doc ]; then + rm -rf AppKit.doc +fi + +if [ -d Foundation.doc ]; then + rm -rf Foundation.doc +fi + cp -r AppKit AppKit.doc cp -r Foundation Foundation.doc find AppKit.doc -name *.j -exec sed -e '/@import.*/ d' -i '' {} \; find Foundation.doc -name *.j -exec sed -e '/@import.*/ d' -i '' {} \; -exec Tools/Documentation/make_headers.rb +exec Tools/Documentation/make_headers