From owner-freebsd-ports Tue Mar 28 3:50: 6 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 912B937BB28 for ; Tue, 28 Mar 2000 03:50:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA11094; Tue, 28 Mar 2000 03:50:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Tue, 28 Mar 2000 03:50:03 -0800 (PST) Message-Id: <200003281150.DAA11094@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Maxim Sobolev Subject: Re: ports/17633: [NEW PORT] New port of xlHtml-yet another utility to convert MS Excel and PowerPoint files into HTML and text Reply-To: Maxim Sobolev Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR ports/17633; it has been noted by GNATS. From: Maxim Sobolev To: freebsd-gnats-submit@FreeBSD.org, sobomax@altavista.net Cc: Subject: Re: ports/17633: [NEW PORT] New port of xlHtml-yet another utility to convert MS Excel and PowerPoint files into HTML and text Date: Tue, 28 Mar 2000 14:42:04 +0300 This is a multi-part message in MIME format. --------------B5BA1387ACDCAE59C651716A Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit It seems that I've forgot to look into shell scripts installed by the port - they are using tcsh. Following is two additional patches to make these scripts work with /bin/csh instead. Reminded by: Nickolay Dudorov -Maxim --------------B5BA1387ACDCAE59C651716A Content-Type: text/plain; charset=koi8-r; name="patch-ae" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-ae" --- xlHtml/nsxlview.orig Tue Mar 28 13:49:06 2000 +++ xlHtml/nsxlview Tue Mar 28 14:34:35 2000 @@ -1,4 +1,4 @@ -#!/bin/tcsh +#!/bin/csh if ($#argv != 1) then echo "Usage: $0 file.xls" @@ -9,12 +9,12 @@ #Generate a unique html filename (/tmp/scriptname.pidnum.html) set com = $0 -set tmp = /tmp/$com:t.$$ +set tmp = `mktemp -t $0:t` || exit 1 set html = $tmp.html xlHtml -a $source > $html -if ((!(-s $html)) | ($status)) then - echo "$0: failed to generate HTML file" +if ((!(-r $html)) | ($status)) then + echo "$0"": failed to generate HTML file" exit 1 endif --------------B5BA1387ACDCAE59C651716A Content-Type: text/plain; charset=koi8-r; name="patch-ad" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-ad" --- xlHtml/nsopen.orig Tue Mar 28 13:48:58 2000 +++ xlHtml/nsopen Tue Mar 28 14:27:14 2000 @@ -1,4 +1,4 @@ -#!/bin/tcsh +#!/bin/csh if ($#argv != 1) then echo "Usage: $0 file" @@ -7,7 +7,7 @@ set file = $argv[1] if (!(-r $file)) then - echo "$0: File $file cannot be read" + echo "$0"": File $file cannot be read" exit 1 endif --------------B5BA1387ACDCAE59C651716A-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message