Re: acrobatviewer



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@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: acrobatviewer
    ... Dezember 2006 16:59 schrieb Warren Block: ... [fixing screen wrap problem] ... It doesn't fix that, but here's a patch to fix, or at least start to ...
    (freebsd-questions)
  • Re: Printer Recommendations Please
    ... "Warren Block" wrote ... I'd fix it rather than replace it. ... The 4050 is an easy printer to ... repair. ...
    (comp.periphs.printers)
  • Linux 2.6.19
    ... knowing that it's all your own d*mn fault, and you should just fix your ... [SCSI] ... [PATCH] ... USB: ipaq: Add HTC Modem Support ...
    (Linux-Kernel)
  • Re: Linux 2.6.19
    ... knowing that it's all your own d*mn fault, and you should just fix your ... [SCSI] ... [PATCH] ... USB: ipaq: Add HTC Modem Support ...
    (Linux-Kernel)
  • Re: problem with 200GB hard drive
    ... > the partition and then run mkfs.ext3 and format the partition, ... - add patch from Dave Jones ... - fix error message, do block size checking on s390 only ... - automated rebuild ...
    (Fedora)