3af98e1b33cea79d5d0e7964598700a3b7173528
[packages/filepath.git] / make-docs.bat
1 mkdir docs
2 cpphs --noline System\FilePath.hs -D__HADDOCK__ > docs\System.FilePath.hs
3 cpphs --noline System\FilePath\Windows.hs -D__HADDOCK__ > docs\System.FilePath.Windows.hs
4 cpphs --noline System\FilePath\Posix.hs -D__HADDOCK__ > docs\System.FilePath.Posix.hs
5
6 haddock -h docs\System.FilePath.hs docs\System.FilePath.Posix.hs docs\System.FilePath.Windows.hs --odir=docs --source-module=%%{MODULE}.html --source-entity=%%{MODULE}.html#%%{NAME}
7
8 copy d:\bin\hscolour.css docs\hscolour.css
9 hscolour -anchor -css docs\System.FilePath.hs > docs\System.FilePath.html
10 hscolour -anchor -css docs\System.FilePath.Windows.hs > docs\System.FilePath.Windows.html
11 hscolour -anchor -css docs\System.FilePath.Posix.hs > docs\System.FilePath.Posix.html
12
13 if "%1" == "deploy" copy "docs\*.*" "W:\projects\filepath\*.*"
14