Files
cappuccino/Tools/Documentation/make_headers.sh
T

26 lines
720 B
Bash
Executable File

#!/bin/sh
#
# NOTE: The working directory should be the main capp directory when this script is run
if [ -d AppKit.doc ]; then
rm -rf AppKit.doc
fi
if [ -d Foundation.doc ]; then
rm -rf Foundation.doc
fi
echo "Processing source files..."
bsdtar cf AppKit.doc.tar --exclude='_*' -s /^AppKit/AppKit.doc/ AppKit/*.j AppKit/**/*.j
bsdtar xf AppKit.doc.tar
rm AppKit.doc.tar
bsdtar cf Foundation.doc.tar --exclude='_*' -s /^Foundation/Foundation.doc/ Foundation/*.j Foundation/**/*.j
bsdtar 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 '' {} \;
exec Tools/Documentation/make_headers