pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/geography/epsg/files invoke help if called with no arg...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d254f82264d5
branches: trunk
changeset: 519458:d254f82264d5
user: gdt <gdt%pkgsrc.org@localhost>
date: Tue Oct 03 12:55:47 2006 +0000
description:
invoke help if called with no arguments
diffstat:
geography/epsg/files/epsg.sh | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 23781bdea60d -r d254f82264d5 geography/epsg/files/epsg.sh
--- a/geography/epsg/files/epsg.sh Tue Oct 03 12:55:32 2006 +0000
+++ b/geography/epsg/files/epsg.sh Tue Oct 03 12:55:47 2006 +0000
@@ -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 @@
PSQL=${PREFIX}/bin/psql
MYSQL=${PREFIX}/bin/mysql
+if [ $# = 0 ]; then
+ HELP=1
+fi
+
while [ $# -gt 0 ]; do
case $1 in
--help) HELP=1;;
Home |
Main Index |
Thread Index |
Old Index