From 0113ef1131636de6cb66f49f039636359d21c5f4 Mon Sep 17 00:00:00 2001 From: gdt Date: Tue, 3 Oct 2006 12:55:47 +0000 Subject: invoke help if called with no arguments --- geography/epsg/files/epsg.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/geography/epsg/files/epsg.sh b/geography/epsg/files/epsg.sh index 66a891093a8..f1abc551bbc 100644 --- a/geography/epsg/files/epsg.sh +++ b/geography/epsg/files/epsg.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: epsg.sh,v 1.1 2006/10/03 12:53:44 gdt Exp $ +# $NetBSD: epsg.sh,v 1.2 2006/10/03 12:55:47 gdt Exp $ # epsg - import EPSG data into a relational database @@ -46,6 +46,10 @@ SRCDIR=${EPSGDIR} PSQL=${PREFIX}/bin/psql MYSQL=${PREFIX}/bin/mysql +if [ $# = 0 ]; then + HELP=1 +fi + while [ $# -gt 0 ]; do case $1 in --help) HELP=1;; -- cgit v1.2.3