Add proper handling of null column values
[hcoop/smlsql.git] / build
1 #!/bin/sh
2
3 SMLBIN=/usr/local/sml/bin
4 POSTGRES_INCLUDE=/usr/include/postgresql
5
6 if [ -d .cm ] ; then
7 rm -rf .cm
8 fi
9 if [ -d libpq/.cm ] ; then
10 rm -rf libpq/.cm
11 fi
12 if [ -d libpq/FFI ] ; then
13 rm -rf libpq/FFI/*
14 fi
15
16 if ! cat build.sml | $SMLBIN/sml ; then
17 exit 1
18 fi
19
20 cd libpq
21
22 $SMLBIN/ml-nlffigen -d FFI -lh LibpqH.libh -include ../libpq-h.sml -cm libpq.h.cm -D__builtin_va_list="void*" $POSTGRES_INCLUDE/libpq-fe.h
23
24 if ! cat build.sml | $SMLBIN/sml ; then
25 exit 1
26 fi