Remove @import statements from source files, doxygen doesn't parse them correctly.

This commit is contained in:
Aparajita Fishman committed 2010-08-08 15:12:00 -04:00
1 parent 6e24bba8a3
commit 107a041efe
5 files changed
+19 -23

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ task ("documentation", function()
var documentationDir = FILE.join("Tools", "Documentation");
if (OS.system(["ruby", FILE.join(documentationDir, "make_headers")]))
if (OS.system(["ruby", FILE.join(documentationDir, "make_headers.sh")]))
OS.exit(1); //rake abort if ($? != 0)
if (!OS.system([doxygen, FILE.join(documentationDir, "Cappuccino.doxygen")]))
+3 -3
View File
@@ -589,8 +589,8 @@ WARN_LOGFILE = debug.txt
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
INPUT = AppKit \
Foundation
INPUT = AppKit.doc \
Foundation.doc
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
@@ -650,7 +650,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/Themes
EXCLUDE = AppKit.doc/Themes
# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
# directories that are symbolic links (a Unix filesystem feature) are excluded
+3 -10
View File
@@ -1,10 +1,3 @@
#! /usr/bin/env ruby
filename = File.dirname(__FILE__) + "/header_files"
@files = File.new(filename).read.split("\n")
for file in @files
File.delete(file)
end
File.delete(filename)
#! /bin/sh
rm -rf AppKit.doc
rm -rf Foundation.doc
+1 -9
View File
@@ -1,7 +1,5 @@
#! /usr/bin/env ruby
@outputFiles = []
def makeHeaderFileFrom(fileName)
# Grab the entire file (text)
data = File.new(fileName).read
@@ -29,20 +27,14 @@ def makeHeaderFileFrom(fileName)
f = File.new(newFileName, "w")
f.write(newLine + "\n@end")
f.close()
@outputFiles.push(newFileName)
end
end
end
end
end
fileList = Dir['AppKit/**/*.j'] + Dir['Foundation/**/*.j']
fileList = Dir['AppKit.doc/**/*.j'] + Dir['Foundation.doc/**/*.j']
for fileName in fileList
makeHeaderFileFrom(fileName)
end
f = File.new(File.dirname(__FILE__) + "/header_files", "w")
f.write(@outputFiles.join("\n"))
f.close()
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
#
# NOTE: The working directory should be the main capp directory when this script is run
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