summaryrefslogtreecommitdiff
path: root/www/surfraw
diff options
context:
space:
mode:
authorjlam <jlam>2001-11-06 23:12:00 +0000
committerjlam <jlam>2001-11-06 23:12:00 +0000
commitfcff4bb73a1acdd3e6c05948511767ab576b4dcd (patch)
treee07160406544987f74fc5b50d2332637acf92358 /www/surfraw
parent3f6d17f59b466161118f12ed670338acef7baf25 (diff)
downloadpkgsrc-fcff4bb73a1acdd3e6c05948511767ab576b4dcd.tar.gz
Deal with scope issues: you can't modify a variable defined outside of a
subshell. In this case, the subshell is implicit due to the pipeline.
Diffstat (limited to 'www/surfraw')
-rw-r--r--www/surfraw/DEINSTALL20
1 files changed, 11 insertions, 9 deletions
diff --git a/www/surfraw/DEINSTALL b/www/surfraw/DEINSTALL
index 33d0367f43e..bb4a088a979 100644
--- a/www/surfraw/DEINSTALL
+++ b/www/surfraw/DEINSTALL
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: DEINSTALL,v 1.3 2001/11/06 22:50:13 jlam Exp $
+# $NetBSD: DEINSTALL,v 1.4 2001/11/06 23:12:00 jlam Exp $
PKGNAME=$1
STAGE=$2
@@ -37,14 +37,16 @@ DEINSTALL)
;;
POST-DEINSTALL)
- modified_files=''
- ${ECHO} ${CONFFILES} | ${TR} ":" "\012" | while read SAMPLEFILE FILE
- do
- if [ -f ${FILE} ]
- then
- modified_files="${modified_files} ${FILE}"
- fi
- done
+ modified_files=` \
+ ${ECHO} ${CONFFILES} | ${TR} ":" "\012" | \
+ while read SAMPLEFILE FILE; \
+ do \
+ if [ -f ${FILE} ]; \
+ then \
+ ${ECHO} ${FILE}; \
+ fi; \
+ done; \
+ `
existing_dirs=''
for dir in __dummy ${MAKEDIRS}