aboutsummaryrefslogtreecommitdiff
path: root/mail/postfix1/scripts/configure
blob: c96a3f3a2faa06753567607dbc84cd17d1cede7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
#
# $FreeBSD$

cd ${WRKSRC}/man

for f in ${MAN1} ; do
	mv man1/$f man1/$f.bak && \
		soelim man1/$f.bak | sed s+!!PREFIX!!+$PREFIX+g >man1/$f
done
	
for f in ${MAN5} ; do
	mv man5/$f man5/$f.bak && \
		soelim man5/$f.bak | sed s+!!PREFIX!!+$PREFIX+g >man5/$f
done
	
for f in ${MAN8} ; do
	mv man8/$f man8/$f.bak && \
		soelim man8/$f.bak | sed s+!!PREFIX!!+$PREFIX+g >man8/$f
done

for f in `grep -r "\!\!PREFIX\!\!" ${WRKSRC} | cut -f 1 -d ':' | uniq` ; do \
	mv $f $f.orig && sed s+!!PREFIX!!+$PREFIX+g < $f.orig > $f && \
		rm $f.orig
done