Initial import
[hcoop/zz_old/domtool.git] / src / main.sml
CommitLineData
182a2654
AC
1(*
2Domtool (http://hcoop.sf.net/)
3Copyright (C) 2004 Adam Chlipala
4
5This program is free software; you can redistribute it and/or
6modify it under the terms of the GNU General Public License
7as published by the Free Software Foundation; either version 2
8of the License, or (at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program; if not, write to the Free Software
17Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18*)
19
20val _ = OS.Process.exit (case CommandLine.arguments () of
21 [] => Domtool.read ()
22 | ["publish"] => Domtool.publish ()
23 | ["mkdom", dom, user] => Domtool.mkdom (dom, user)
24 | _ => (print "Invalid arguments\n";
25 OS.Process.failure))