[BACK]Return to patch-ad CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / mbone / sdr / patches

File: [cvs.NetBSD.org] / pkgsrc / mbone / sdr / patches / Attic / patch-ad (download)

Revision 1.11, Thu Jul 3 14:40:49 2003 UTC (19 years, 5 months ago) by agc
Branch: MAIN
CVS Tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1, pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkgsrc-2008Q1-base, pkgsrc-2008Q1, pkgsrc-2007Q4-base, pkgsrc-2007Q4, pkgsrc-2007Q3-base, pkgsrc-2007Q3, pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1, pkgsrc-2006Q4-base, pkgsrc-2006Q4, pkgsrc-2006Q3-base, pkgsrc-2006Q3, pkgsrc-2006Q2-base, pkgsrc-2006Q2, pkgsrc-2006Q1-base, pkgsrc-2006Q1, pkgsrc-2005Q4-base, pkgsrc-2005Q4, pkgsrc-2005Q3-base, pkgsrc-2005Q3, pkgsrc-2005Q2-base, pkgsrc-2005Q2, pkgsrc-2005Q1-base, pkgsrc-2005Q1, pkgsrc-2004Q4-base, pkgsrc-2004Q4, pkgsrc-2004Q3-base, pkgsrc-2004Q3, pkgsrc-2004Q2-base, pkgsrc-2004Q2, pkgsrc-2004Q1-base, pkgsrc-2004Q1, pkgsrc-2003Q4-base, pkgsrc-2003Q4, cwrapper, cube-native-xorg-base, cube-native-xorg
Changes since 1.10: +2 -2 lines

Avoid hardcoding /usr/pkg in this package, pointed out by Julio Merino

$NetBSD: patch-ad,v 1.11 2003/07/03 14:40:49 agc Exp $

--- ../src/sdr.tcl.orig	Mon Sep  4 18:30:39 2000
+++ ../src/sdr.tcl
@@ -4457,7 +4457,7 @@
 
 # find where we are installed
 set app_name $argv0
-while {[file type $app_name] == "link"} {
+while {([file isfile $app_name]) && ([file type $app_name] == "link")} {
     # don't worry about recursion since we know app must exist.
     set app_name [file readlink $app_name]
 }
@@ -4470,6 +4470,7 @@
 	$app_home/sdr/plugins \
 	$app_home/plugins \
 	$app_home/../plugins \
+	@PREFIX@/etc/sdr/plugins \
 	/usr/local/etc/sdr/plugins \
 	[resource sdrHome]/plugins \
 ]
@@ -4538,7 +4539,7 @@
 
 # find where we are installed
 set app_name $argv0
-while {[file type $app_name] == "link"} {
+while {([file isfile $app_name]) && ([file type $app_name] == "link")} {
     # don't worry about recursion since we know app must exist.
     set app_name [file readlink $app_name]
 }