summaryrefslogtreecommitdiff
path: root/src/haddock/haddock-script.csh
diff options
context:
space:
mode:
authorpeb <unknown>2005-04-11 12:57:45 +0000
committerpeb <unknown>2005-04-11 12:57:45 +0000
commitac00f77dadd4d447803dd7cab5a36f47365325d0 (patch)
tree2fd02b19234f8d1fcc20ee67a2367d4d4eebfcd8 /src/haddock/haddock-script.csh
parentf6273f7033b85eea9a8d0cc7d31e9697ba95d5b7 (diff)
"Committed_by_peb"
Diffstat (limited to 'src/haddock/haddock-script.csh')
-rw-r--r--src/haddock/haddock-script.csh24
1 files changed, 7 insertions, 17 deletions
diff --git a/src/haddock/haddock-script.csh b/src/haddock/haddock-script.csh
index a27cbf505..bafb9afef 100644
--- a/src/haddock/haddock-script.csh
+++ b/src/haddock/haddock-script.csh
@@ -2,8 +2,8 @@
######################################################################
# Author: Peter Ljunglöf
-# Time-stamp: "2005-03-29, 13:55"
-# CVS $Date: 2005/03/29 11:58:45 $
+# Time-stamp: "2005-03-29, 14:04"
+# CVS $Date: 2005/04/11 13:53:37 $
# CVS $Author: peb $
#
# a script for producing documentation through Haddock
@@ -16,7 +16,7 @@ set resourcedir = haddock-resources
#set dirs = (. api compile grammar infra shell source canonical useGrammar cf newparsing parsers notrace cfgm speech visualization for-hugs for-ghc)
-set files = (`find * -name '*.hs' -not -path 'old-stuff/*' -not -path 'for-*' -not -path 'haddock*' -not -name 'Lex[GC]*' -not -name 'Par[GC]*'` $base/for-ghc-nofud/*.hs)
+set files = (`find * -name '*.hs' -not -path 'old-stuff/*' -not -path 'for-*' -not -path 'haddock*'` for-ghc-nofud/*.hs)
######################################################################
@@ -29,29 +29,18 @@ rm -r $docdir/*
######################################################################
echo
-echo 2. Copying Haskell files to temporary directory ($tempdir)
+echo 2. Copying Haskell files to temporary directory: $tempdir
rm -r $tempdir
foreach f ($files)
- echo -- $f
+ # echo -- $f
mkdir -p `dirname $tempdir/$f`
- perl -e 's/^#/-- CPP #/' $f > $tempdir/$f
+ perl -pe 's/^#/-- CPP #/' $f > $tempdir/$f
end
######################################################################
-# set rmfiles = {Lex,Par}{CFG,GF,GFC}.hs
-
-# echo
-# echo 2. Removing unnecessary files
-
-# cd $docdir
-# echo -- `ls $rmfiles`
-# rm $rmfiles
-
-######################################################################
-
echo
echo 3. Invoking Haddock
@@ -67,6 +56,7 @@ echo 4. Restructuring to HTML framesets
echo -- Substituting for frame targets inside html files
mv $docdir/index.html $docdir/index-frame.html
foreach f ($docdir/*.html)
+ # echo -- $f
perl -pe 's/<HEAD/<HEAD><BASE TARGET="contents"/; s/"index.html"/"index-frame.html"/; s/(<A HREF = "\S*index\S*.html")/$1 TARGET="index"/' $f > .tempfile
mv .tempfile $f
end