Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Dec 2006 01:47:19 +0100
From:      Stevan Tiefert <stevan-tiefert@t-online.de>
To:        freebsd-questions@freebsd.org
Subject:   Re: acrobatviewer
Message-ID:  <200612210147.20071.stevan-tiefert@t-online.de>
In-Reply-To: <20061220081028.T50583@wonkity.com>
References:  <20061219214345.E49015@wonkity.com> <20061220081028.T50583@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Am Mittwoch, 20. Dezember 2006 16:59 schrieb Warren Block:
> On Tue, 19 Dec 2006, Warren Block wrote:
>
> [fixing screen wrap problem]
>
>    java -cp acrobat.jar com.adobe.acrobat.Viewer
>
>    Exception in thread "main" java.lang.NoClassDefFoundError:
> com/apple/mrj/MRJAboutHandler
>
> It doesn't fix that, but here's a patch to fix, or at least start to
> fix, the most obvious problems in the AcrobatViewer shell script:
>
> --- AcrobatViewer.old	Wed Dec 20 08:12:16 2006
> +++ AcrobatViewer	Wed Dec 20 08:21:58 2006
> @@ -119,7 +119,7 @@
>   do
>   	#lsstring=`ls -dgon $currname`
>   	lsstring=`ls -l $currname`
> -	islink="`expr "$lsstring" : ".*[\>]\(.*\)"`"
> +	islink=`expr "\"$lsstring\"" : "\".*[>]\(.*\)\""`
>   	if [ ${islink:-""} = "" -o ${islink:-"0"} = "0" ]
>   	then
>   		linked=false
> @@ -257,7 +257,7 @@
>   	then
>   		finished=true
>   	else
> -		testclp=`expr "$thisclp" : "\([/]\)"`
> +		testclp=`expr "\"$thisclp\"" : "\([/]\)"`
>   		if [ "${testclp:-""}" = "" -o "${testclp:-"0"}" = "0" ]
>   		then
>   			absclp=$absclp$here/$thisclp:
> @@ -610,7 +610,7 @@
>           #
>   	linkDir=`dirname $actvm_remaining`
>   	minusLoutput=`ls -l $actvm_remaining`
> -	minusLoutput=`expr "$minusLoutput" : ".*[\>] \(.*\)"`
> +	minusLoutput=`expr "\"$minusLoutput\"" : ".*[\>] \(.*\)"`
>   	while [ "$minusLoutput" != "" -a "$minusLoutput" != 0 ]
>   	do
>   		if [ `expr "$minusLoutput" : "^/"` = 0 ]; then
>
> -Warren Block * Rapid City, South Dakota USA
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"

Hello Warren,

maybe a stupid question :-) Should I save that in a diff-file and use it 
with patch maybe?

Regards
Stevan Tiefert



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612210147.20071.stevan-tiefert>