summaryrefslogtreecommitdiff
path: root/geography/epsg/files
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-08-14 17:19:20 +0000
committerjoerg <joerg@pkgsrc.org>2007-08-14 17:19:20 +0000
commit860159249ad4bfc68875e0ad0c132dea65b60dc9 (patch)
tree5a61d56283e9a57644b87a9da1e58a852e9ac8a7 /geography/epsg/files
parentd337d7e58443df98922c8d96c5645090d695ddab (diff)
downloadpkgsrc-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-xgeography/epsg/files/epsg-load4
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