diff options
Diffstat (limited to 'net-im/amsn/scripts')
-rw-r--r-- | net-im/amsn/scripts/post-configure | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/net-im/amsn/scripts/post-configure b/net-im/amsn/scripts/post-configure index 60b16555d62..52cd3b7e15d 100644 --- a/net-im/amsn/scripts/post-configure +++ b/net-im/amsn/scripts/post-configure @@ -1,10 +1,19 @@ #! /bin/sh +## 'wish' is not recognized in FreeBSD +## we should use 'wish8.4' instead +## this script fixes the first line in amsn and alarm.tcl scripts + cd $WRKSRC -for i in alarm.tcl amsn -do - mv $i $i.orig - sed -e "s=/usr/bin/wish=$PREFIX/bin/wish8.4=" < $i.orig > $i - rm $i.orig -done +mv alarm.tcl alarm.tcl.orig +echo \#!$PREFIX/bin/wish8.4 > alarm.tcl +echo -n \#\#old: >> alarm.tcl +cat alarm.tcl.orig >> alarm.tcl +rm alarm.tcl.orig + +mv amsn amsn.orig +echo \#!$PREFIX/bin/wish8.4 > amsn +echo -n \#\#old: >> amsn +cat amsn.orig >> amsn +rm amsn.orig |