mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
24 lines
613 B
Plaintext
24 lines
613 B
Plaintext
|
--- 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
|