diff options
author | gdt <gdt@pkgsrc.org> | 2006-10-03 12:55:47 +0000 |
---|---|---|
committer | gdt <gdt@pkgsrc.org> | 2006-10-03 12:55:47 +0000 |
commit | 0113ef1131636de6cb66f49f039636359d21c5f4 (patch) | |
tree | 654f51fd9ae4fa63d096664065af7bedeccedf3c /geography | |
parent | 813f2746009e818f66e9ca8ac13410b92dc3599c (diff) | |
download | pkgsrc-0113ef1131636de6cb66f49f039636359d21c5f4.tar.gz |
invoke help if called with no arguments
Diffstat (limited to 'geography')
-rw-r--r-- | geography/epsg/files/epsg.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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;; |