Use bsdtar explicitly for 'jake docs' in case the user has GNU tar installed through e.g. fink.

This enables the -s parameter to work.
This commit is contained in:
Alexander Ljungberg committed 2011-04-03 16:58:39 -04:00
1 parent f29dcc9c6b
commit 501c15775e
1 file changed
+4 -4
+4 -4
View File
@@ -11,12 +11,12 @@ if [ -d Foundation.doc ]; then
fi
echo "Processing source files..."
tar cf AppKit.doc.tar --exclude='_*' -s /^AppKit/AppKit.doc/ AppKit/*.j AppKit/**/*.j
tar xf AppKit.doc.tar
bsdtar cf AppKit.doc.tar --exclude='_*' -s /^AppKit/AppKit.doc/ AppKit/*.j AppKit/**/*.j
bsdtar 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
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 '' {} \;