Use any available *.maildirmake executable in ${LOCALBASE}/bin instead of
hard-coding the names of the maildirmake executables. Bump version to 0.2.
This commit is contained in:
parent
27502d44d0
commit
b15c8125c5
2 changed files with 6 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 2001/08/16 06:19:24 jlam Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2002/01/01 08:00:45 jlam Exp $
|
||||
|
||||
DISTNAME= courier-maildirmake-0.1
|
||||
DISTNAME= courier-maildirmake-0.2
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= # empty
|
||||
DISTFILES= # empty
|
||||
|
|
|
@ -1,17 +1,12 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: maildirmake.sh,v 1.1.1.1 2001/08/16 06:19:24 jlam Exp $
|
||||
# $NetBSD: maildirmake.sh,v 1.2 2002/01/01 08:00:45 jlam Exp $
|
||||
#
|
||||
# Wrapper to execute maildirmake from amongst any installed maildirmake
|
||||
# executable.
|
||||
|
||||
maildirmakes=" \
|
||||
@LOCALBASE@/bin/imapd.maildirmake \
|
||||
@LOCALBASE@/bin/maildrop.maildirmake \
|
||||
"
|
||||
|
||||
maildirmake=NONE
|
||||
for file in ${maildirmakes}
|
||||
maildirmake=
|
||||
for file in @LOCALBASE@/bin/*.maildirmake
|
||||
do
|
||||
if [ -x ${file} ]
|
||||
then
|
||||
|
@ -19,7 +14,7 @@ do
|
|||
fi
|
||||
done
|
||||
|
||||
if [ "${maildirmake}" = "NONE" ]
|
||||
if [ -z "${maildirmake}" ]
|
||||
then
|
||||
@ECHO@ "$0: can't find a valid maildirmake executable"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue