Revert "Merge branch 'use-trunc-rounding' into rounding-fixes"
[gpstools.git] / postgres / init.sh
blobc11a04aa66c9f50d597fa850219fe93e6438d079
1 #!/bin/bash
3 #=======================================================================
4 # postgres/init.sh
5 # File ID: 372e8e36-fafb-11dd-8930-000475e441b9
6 # License: GNU General Public License version 3 or later.
7 #=======================================================================
9 DBASE=gps
10 [ -z "$1" ] || { DBASE=$1; }
11 createdb $DBASE
12 psql -d $DBASE -c "CREATE LANGUAGE plpgsql;"
13 psql -d $DBASE -f init.sql