]> gitweb.michael.orlitzky.com - spline3.git/commitdiff
Update the hscolour_srcs script to use the Cabal filesystem layout.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 27 Nov 2011 01:37:59 +0000 (20:37 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 27 Nov 2011 01:37:59 +0000 (20:37 -0500)
util/hscolour_srcs

index ff14ef0562e48bfbf7f1170515152f51b1f666bf..cf910c55d840092c74252b93ba613f4ec8e12006 100755 (executable)
@@ -14,6 +14,8 @@ SRCS=`find ./src -iname '*.hs'`
 for file in $SRCS; do
     DIRNAME=`dirname $file`
     BASENAME=`basename $file .hs`
-    OUTFILE="doc/html/${DIRNAME}/${BASENAME}.html"
+    OUTDIR="dist/doc/html/spline3/spline3/${DIRNAME}/"
+    mkdir -p "${OUTDIR}"
+    OUTFILE="${OUTDIR}/${BASENAME}.html"
     HsColour -html -anchor $file > $OUTFILE
 done