summaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd22/DEINSTALL
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-05-27 04:45:06 +0000
committerjlam <jlam@pkgsrc.org>2004-05-27 04:45:06 +0000
commitff0628c9b683dee6f2faad7b6b7846ffefdbbd1c (patch)
tree92bfd4ed75124f7118b3deb5eeae47621c68b759 /mail/cyrus-imapd22/DEINSTALL
parentef7a620e21841890da3402ea3d39894fa14d98d7 (diff)
downloadpkgsrc-ff0628c9b683dee6f2faad7b6b7846ffefdbbd1c.tar.gz
Restructure the flow so that we use pipes to pass information between
processes instead of saving values in shell variables and then iterating over them. Using pipes is more scalable and is just as easy to read, so it's a net win.
Diffstat (limited to 'mail/cyrus-imapd22/DEINSTALL')
-rw-r--r--mail/cyrus-imapd22/DEINSTALL16
1 files changed, 7 insertions, 9 deletions
diff --git a/mail/cyrus-imapd22/DEINSTALL b/mail/cyrus-imapd22/DEINSTALL
index 4a6e8c32874..2ad34812c72 100644
--- a/mail/cyrus-imapd22/DEINSTALL
+++ b/mail/cyrus-imapd22/DEINSTALL
@@ -1,18 +1,16 @@
-# $NetBSD: DEINSTALL,v 1.1.1.1 2004/01/18 12:42:11 recht Exp $
+# $NetBSD: DEINSTALL,v 1.2 2004/05/27 04:45:06 jlam Exp $
IMAPDCONF=@IMAPDCONF@
case ${STAGE} in
DEINSTALL)
if [ -f ${IMAPDCONF} ]; then
- imap_dirs=` \
- ${AWK} '/configdirectory:/ { print $2 }; \
- /partition-.*:/ { print $2 }; \
- /sievedir:/ { print $2 }' \
- ${IMAPDCONF} \
- `
- for dir in ${imap_dirs}; do
- if [ -d ${dir} ]; then
+ ${AWK} '/configdirectory:/ { print $2 }; \
+ /partition-.*:/ { print $2 }; \
+ /sievedir:/ { print $2 }' \
+ ${IMAPDCONF} | \
+ while read dir; do
+ if [ -d "${dir}" ]; then
ALL_DIRS="${ALL_DIRS} ${dir}"
fi
done