diff options
author | joerg <joerg@pkgsrc.org> | 2007-08-14 17:19:20 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-08-14 17:19:20 +0000 |
commit | 860159249ad4bfc68875e0ad0c132dea65b60dc9 (patch) | |
tree | 5a61d56283e9a57644b87a9da1e58a852e9ac8a7 /geography/epsg/files | |
parent | d337d7e58443df98922c8d96c5645090d695ddab (diff) | |
download | pkgsrc-860159249ad4bfc68875e0ad0c132dea65b60dc9.tar.gz |
Add DESTDIR support and bail-out in epsg-load when errors happened,
e.g. because psql or mysql failed. Bump revision.
Patch from Brook Milligan in private mail.
Diffstat (limited to 'geography/epsg/files')
-rwxr-xr-x | geography/epsg/files/epsg-load | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/geography/epsg/files/epsg-load b/geography/epsg/files/epsg-load index f8e937c462b..a85c5a6de81 100755 --- a/geography/epsg/files/epsg-load +++ b/geography/epsg/files/epsg-load @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: epsg-load,v 1.3 2007/07/28 11:06:36 gdt Exp $ +# $NetBSD: epsg-load,v 1.4 2007/08/14 17:19:20 joerg Exp $ # epsg - import EPSG data into a relational database @@ -32,6 +32,8 @@ # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +set -e # exit on error + HOST= PORT= DB=epsg |