Commits

Luke Plant committed 27ac77d

Changed build script to work for multiple entry points

Comments (0)

Files changed (2)

 #!/bin/sh
+TARGET=$1
 cd src
-ghc -package cgi -package xhtml -fallow-overlapping-instances --make -o blog.cgi blog.hs || exit 1
-chmod ugo+rwx blog.cgi
-mv blog.cgi /home/luke/httpd/lukeplant.me.uk/web/cgi-bin/blog.cgi
+ghc -package cgi -package xhtml -fallow-overlapping-instances --make -o $TARGET.cgi $TARGET.hs settings.hs db.hs || exit 1
+chmod ugo+rwx $TARGET.cgi
+mv $TARGET.cgi /home/luke/httpd/lukeplant.me.uk/web/cgi-bin/$TARGET.cgi

build_installdb

-#!/bin/sh
-
-cd src
-ghc -package cgi -package xhtml -fallow-overlapping-instances -package HDBC -package HDBC-sqlite3 --make -o  installdb.cgi installdb.hs settings.hs db.hs || exit 1
-chmod ugo+rwx installdb.cgi
-mv installdb.cgi /home/luke/httpd/lukeplant.me.uk/web/cgi-bin/