summaryrefslogtreecommitdiff
path: root/math/scilab/files/patch-ap
diff options
context:
space:
mode:
authorPatrick Li <pat@FreeBSD.org>2002-01-30 05:59:03 +0000
committerPatrick Li <pat@FreeBSD.org>2002-01-30 05:59:03 +0000
commit0018a485aaa7e370c5c42f4d91ee2d6913642acd (patch)
treecbba1e50549216af6aa6c9bfea2f9ad941fae717 /math/scilab/files/patch-ap
parentUpdate to 0.37.2.20020125 (diff)
- add patches from NetBSD (fixes for ascii(), fft() and the online help)
- Provide a working default PVM configuration. - Remove unneeded pvm files form the install. PR: 34276 Submitted by: maintainer Obtained from: NetBSD
Notes
Notes: svn path=/head/; revision=54013
Diffstat (limited to 'math/scilab/files/patch-ap')
-rw-r--r--math/scilab/files/patch-ap40
1 files changed, 40 insertions, 0 deletions
diff --git a/math/scilab/files/patch-ap b/math/scilab/files/patch-ap
new file mode 100644
index 000000000000..3532b93e913e
--- /dev/null
+++ b/math/scilab/files/patch-ap
@@ -0,0 +1,40 @@
+--- macros/util/formatman.sci.orig Fri Mar 2 03:50:36 2001
++++ macros/util/formatman.sci Thu Dec 20 17:34:38 2001
+@@ -389,5 +389,5 @@
+ end
+ end
+-function wh=asciiwhatis(path,fnam)
++function wh_out=asciiwhatis(path,fnam)
+ txt=mgetl(path)
+ d=find(part(txt,1:8)=='.SH NAME')
+@@ -401,5 +401,17 @@
+ wh=stripblanks(wh)
+ k=find(wh=='');if k<>[] then wh(k)=[];end
+-wh=wh+' @'+fnam
++sz=size(wh);
++for i=1:sz(1),
++// pad the output to make the descriptions all line up on the left
++ind=min(strindex(wh(i,:),' - '))-1;
++ind=ind(1);
++tmps=sprintf('%-15s%s',part(wh(i),1:ind),part(wh(i),(ind+1):length(wh(i))));
++tmps=tmps +' @'+fnam
++if (i == 1),
++ wh_out = tmps;
++else
++ wh_out=sprintf('%s\n%s',wh_out,tmps);
++end
++end
+
+ function wh=texwhatis(path,fnam)
+@@ -426,5 +438,10 @@
+ p=p(1)
+
+- whk=part(whk,1:p-1)+'</a>'+part(whk,p:length(whk))
++ // pad the output to make the descriptions all line up on the left
++ pad='';
++ for i=1:(15-p),
++ pad=pad+'&nbsp';
++ end
++ whk=part(whk,1:p-1)+'</a>'+pad+part(whk,p:length(whk))
+ wh(k)='<br><a href=""'+fnam+'"">'+whk+'<br>'
+ end