From e5a95dcfd5c433ed8258339d3b25e521d2a54be0 Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 22 Jun 2008 13:55:05 +0000 Subject: [PATCH] usage message --- gnu/dist/postfix/postfix2netbsd | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/dist/postfix/postfix2netbsd b/gnu/dist/postfix/postfix2netbsd index 5bf5778a6331..04ca5e6271d0 100755 --- a/gnu/dist/postfix/postfix2netbsd +++ b/gnu/dist/postfix/postfix2netbsd @@ -1,6 +1,6 @@ #! /bin/sh # -# $NetBSD: postfix2netbsd,v 1.11 2008/04/30 13:10:50 martin Exp $ +# $NetBSD: postfix2netbsd,v 1.12 2008/06/22 13:55:05 christos Exp $ # # Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. # All rights reserved. @@ -35,6 +35,13 @@ # # Seed from Wiz's grep2netbsd. +PROG="$(basename "$0")" +if [ -z "$1" -o -n "$2" ] +then + echo "Usage: $PROG " 1>&2 + exit 1 +fi +cd "$1" # delete some superfluous files echo deleting some superfluous files find . \( -type f -o -type l \) -a \