Mercurial > forge
changeset 2558:d5a7f97cc2f6 octave-forge
Latest mega package manager update
line wrap: on
line diff
--- a/admin/template.ndev Mon Oct 02 19:35:28 2006 +0000 +++ b/admin/template.ndev Mon Oct 02 19:47:38 2006 +0000 @@ -270,7 +270,10 @@ <dd> An optional directory containing documentation for the package. The files in this directory will be directly installed in a sub-directory of the installed package for - future reference. + future reference. Note that any html files included in this + directory will be included in the octave-forge package + webpages. To include images or arbitrary files use a + sub-directory html/ in this directory. <dt>package/inst <dd> An optional directory containing any files that are directly installed by package. Typically this will include any m-files.
--- a/doc/coda/coda.sgml Mon Oct 02 19:35:28 2006 +0000 +++ b/doc/coda/coda.sgml Mon Oct 02 19:47:38 2006 +0000 @@ -1,6 +1,6 @@ <?xml version="1.0" standalone="no"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1//EN" - "/usr/share/sgml/docbook/dtd/xml/4.2/docbookx.dtd" [ + "/usr/share/sgml/docbook/xml-dtd-4.2/docbookx.dtd" [ <!-- Copyright (C) 2001 Christoph L. Spiel
--- a/extra/civil/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/extra/civil/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Matthew W. Roberts Maintainer: The Octave Community Title: Civil Engineering -Description: Add a description to this package! +Description: Functions to solution some ODE's in Civil Engineering. Depends: octave (>= 2.9.7) License: GPL version 2 or later Url: http://octave.sf.net
--- a/extra/mapping/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/extra/mapping/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Andrew Collier <abcollier@users.sourceforge.net> Maintainer: The Octave Community Title: Mapping Functions -Description: Add a description to this package! +Description: Simple Mapping functions. Categories: Mathematics Depends: octave (>= 2.9.7) License: GPL version 2 or later
--- a/extra/ode/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/extra/ode/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Marc Compere <CompereM@asme.org> Maintainer: The Octave Community Title: Ordinary Differential Equation (ODE) Solvers -Description: Add a description to this package! +Description: Ordinary Differential Equation (ODE) Solvers Depends: octave (>= 2.9.7) License: GPL version 2 or later Url: http://octave.sf.net
--- a/extra/symband/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/extra/symband/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Andreas Stahel <Andreas.Stahel@hta-bi.bfh.ch> Maintainer: The Octave Community Title: Symmetric Banded Matrices -Description: Add a description to this package! +Description: Linear Algebra for Symmetric Banded Matrices. Depends: octave (>= 2.9.7) License: GPL version 2 or later Url: http://octave.sf.net
--- a/main/audio/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/audio/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Bruce T. Lowerre and Paul Kienzle Maintainer: Bruce T. Lowerre and Paul Kienzle Title: Audio. -Description: Add a description to this package! +Description: Audio recording, processing and playing tools. Depends: octave (>= 2.9.7) License: GPL version 2 or later Url: http://octave.sf.net
--- a/main/combinatorics/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/combinatorics/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Torsten Finke <fi@igh-essen.com> Maintainer: Torsten Finke <fi@igh-essen.com> Title: Combinatorics. -Description: Add a description to this package! +Description: Combinatorics functions, incuding partitioning. Depends: octave (>= 2.9.7) License: GPL version 2 or later Url: http://octave.sf.net
--- a/main/comm/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/comm/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: David Bateman Maintainer: David Bateman Title: Communications. -Description: Digital Communications, Error Correcting Codes (Channel Code), Source Code functions +Description: Digital Communications, Error Correcting Codes (Channel Code), Source Code functions, Modulation and Galois Fields Depends: octave (>= 2.9.7), signal (>= 1.0.0) License: GPL version 2 or later Url: http://octave.sf.net
--- a/main/comm/doc/.cvsignore Mon Oct 02 19:35:28 2006 +0000 +++ b/main/comm/doc/.cvsignore Mon Oct 02 19:47:38 2006 +0000 @@ -14,3 +14,4 @@ *.toc *.cps *.fns +html
--- a/main/comm/doc/Makefile Mon Oct 02 19:35:28 2006 +0000 +++ b/main/comm/doc/Makefile Mon Oct 02 19:47:38 2006 +0000 @@ -13,14 +13,15 @@ INFODOC = comms.info PSDOC = $(patsubst %.info,%.ps,$(INFODOC)) PDFDOC = $(patsubst %.info,%.pdf,$(INFODOC)) +HTMLDOC = $(patsubst %.info,%.html,$(INFODOC)) TEXIDOC = $(patsubst %.info,%.texi,$(INFODOC)) -DOCS = $(INFODOC) $(PDFDOC) +DOCS = $(INFODOC) $(PDFDOC) DOCSTRINGS = DOCSTRINGS INDEX = ../INDEX TMPDELETES = *.log *.dvi $(DOCSTRINGS) $(TEXIDOC) *~ DELETES = $(TMPDELETES) *.ps *.pdf *.info $(DOCS) *.html comms/ html/ -all : $(PDFDOC) ../inst/doc.info +all : $(PDFDOC) $(HTMLDOC) ../inst/doc.info ../inst/doc.info : $(INFODOC) cp -f $(INFODOC) ../inst/doc.info @@ -56,7 +57,7 @@ %.html : %.texi @if test "x$(TEXI2HTML)" != "x"; then \ echo "Making html $@"; \ - $(TEXI2HTML) -I . -I ../../.. --iftex -expandinfo $< ; \ + $(TEXI2HTML) -I . -I ../../.. --iftex --subdir=./ -expandinfo $< ; \ if test ! -e "$(@:.html=_toc.html)"; then \ if test ! -e "comms/$@"; then \ $(INSTALL_DATA) comms/$(@:.html=_toc.html) comms/$@ ; \
--- a/main/control/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/control/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Ben Sapp Maintainer: Ben Sapp Title: Control. -Description: Add a description to this package! +Description: Additional Octave Control tools Depends: octave (>= 2.9.7) License: GPL version 2 or later Url: http://octave.sf.net
--- a/main/econometrics/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/econometrics/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Michael Creel <michael.creel@uab.es> Maintainer: Michael Creel <michael.creel@uab.es> Title: Econometrics. -Description: Add a description to this package! +Description: Econometrics functions including MLE and GMM based techniques. Depends: octave (>= 2.9.7) License: GPL version 2 or later Url: http://octave.sf.net
--- a/main/fixed/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/fixed/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: David Bateman Maintainer: David Bateman Title: Fixed Point Computations. -Description: Add a description to this package! +Description: Fixed point real and complex matrix toolbox Depends: octave (>= 2.9.7) License: GPL version 2 or later Url: http://octave.sf.net
--- a/main/fixed/doc/.cvsignore Mon Oct 02 19:35:28 2006 +0000 +++ b/main/fixed/doc/.cvsignore Mon Oct 02 19:47:38 2006 +0000 @@ -15,3 +15,4 @@ *.toc *.cps *.fns +html
--- a/main/fixed/doc/Makefile Mon Oct 02 19:35:28 2006 +0000 +++ b/main/fixed/doc/Makefile Mon Oct 02 19:47:38 2006 +0000 @@ -14,6 +14,7 @@ INFODOC = fixed.info PSDOC = $(patsubst %.info,%.ps,$(INFODOC)) PDFDOC = $(patsubst %.info,%.pdf,$(INFODOC)) +HTMLDOC = $(patsubst %.info,%.html,$(INFODOC)) TEXIDOC = $(patsubst %.info,%.texi,$(INFODOC)) DOCS = $(INFODOC) $(PDFDOC) DOCSTRINGS = DOCSTRINGS @@ -21,7 +22,7 @@ TMPDELETES = *.log *.dvi $(DOCSTRINGS) $(FIXEDVERTARGET) $(TEXIDOC) *~ DELETES = $(TMPDELETES) *.ps *.pdf *.info $(DOCS) *.html fixed/ html/ -all : $(PDFDOC) ../inst/doc.info +all : $(PDFDOC) $(HTMLDOC) ../inst/doc.info ../inst/doc.info : $(INFODOC) cp -f $(INFODOC) ../inst/doc.info @@ -61,7 +62,7 @@ %.html : %.texi @if test "x$(TEXI2HTML)" != "x"; then \ echo "Making html $@"; \ - $(TEXI2HTML) -I . -I ../../.. -expandinfo $< ; \ + $(TEXI2HTML) -I . -I ../../.. -iftex --subdir=./ -expandinfo $< ; \ if test ! -e "$(@:.html=_toc.html)"; then \ if test ! -e "fixed/$@"; then \ $(INSTALL_DATA) fixed/$(@:.html=_toc.html) fixed/$@ ; \
--- a/main/general/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/general/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Various authors Maintainer: The Octave Community Title: General. -Description: Add a description to this package! +Description: General tools for octave. Categories: General Depends: octave (>= 2.9.7) License: GPL version 2 or later
--- a/main/geometry/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/geometry/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Various Authors Maintainer: The Octave Community Title: Geometry. -Description: Add a description to this package! +Description: Geometry tools including convex hull, triangulation, etc. Categories: Geometry Depends: octave (>= 2.9.7) BuildRequires: qhull-devel [Mandriva] libqhull0-devel
--- a/main/gsl/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/gsl/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Teemu Ikonen <tpikonen@pcu.helsinki.fi> Maintainer: Teemu Ikonen <tpikonen@pcu.helsinki.fi> Title: GNU Scientific Library. -Description: Add a description to this package! +Description: Octave bindings to the GNU Scientific Library Depends: octave (>= 2.9.7) BuildRequires: gsl-devel [Mandriva] libgsl0-devel License: GPL version 2 or later
--- a/main/ident/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/ident/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Paul Kienzle Maintainer: Paul Kienzle Title: System Indentification. -Description: Add a description to this package! +Description: Addition System Indentification Control functions. Depends: octave (>= 2.9.7) License: GPL version 2 or later Url: http://octave.sf.net
--- a/main/image/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/image/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Various Authors Maintainer: The Octave Community Title: Image Processing. -Description: Add a description to this package! +Description: Image read, write and manipulation tools. Depends: octave (>= 2.9.7) BuildRequires: libpng-devel [Mandriva] libpng3-devel BuildRequires: libjpeg-devel [Mandriva] libjpeg62-devel
--- a/main/info-theory/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/info-theory/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -1,9 +1,11 @@ -Name: Information Theory +Name: InformationTheory Version: 0.1.0 +Date: 2006-09-30 Author: Muthiah Annamalai Maintainer: Muthiah Annamalai Title: Information Theory Description: Functions and routines for basic Information Theory definitions, and source coding. +Categories: Information Theory Depends: octave (>= 2.9.7) Licesnse: GPL version 2 or later Url: http://octave.sf.net
--- a/main/io/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/io/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Various Authors Maintainer: The Octave Community Title: Input/Output. -Description: Add a description to this package! +Description: Input/Output in external formats. Categories: IO Depends: octave (>= 2.9.7) License: GPL version 2 or later
--- a/main/irsa/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/irsa/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Joerg Huber Maintainer: Joerg Huber Title: Irregular sampling analysis. -Description: Add a description to this package! +Description: Irregular sampling analysis. Depends: octave (>= 2.9.7) License: GPL version 2 or later Url: http://octave.sf.net
--- a/main/linear-algebra/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/linear-algebra/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Various Authors Maintainer: The Octave Community Title: Linear Algebra. -Description: Add a description to this package! +Description: Additional linear algebra code, including general SVD and matrix functions. Categories: Linear-Algebra Depends: octave (>= 2.9.7) License: GPL version 2 or later
--- a/main/miscellaneous/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/miscellaneous/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Various Authors Maintainer: The Octave Community Title: Miscellaneous functions. -Description: Add a description to this package! +Description: Miscellaneous tools including waitbar, xml tools, etc Categories: Miscellaneous Depends: octave (>= 2.9.7) SystemRequirements: units
--- a/main/odepkg/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/odepkg/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Thomas Treichl Maintainer: Thomas Treichl Title: OdePkg. -Description: A description will be added to this package! +Description: A toolkit for Ordinary Differential Equations. Categories: Ordinary Differential Equations Depends: octave (>= 2.9.8) License: GPL version 2 or later
--- a/main/optim/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/optim/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Various Authors Maintainer: The Octave Community Title: Optimzation. -Description: Add a description to this package! +Description: Unconstrained Non-linear Optimization toolkit. Depends: octave (>= 2.9.7) License: GPL version 2 or later Url: http://octave.sf.net
--- a/main/parallel/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/parallel/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Hayato Fujiwara Maintainer: Hayato Fujiwara Title: Parallel Computing. -Description: Add a description to this package! +Description: Parallel execution package for cluster computers Depends: octave (>= 2.9.7) License: GPL version 2 or later Url: http://octave.sf.net
--- a/main/plot/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/plot/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Various Authors Maintainer: The Octave Community Title: Plotting. -Description: Add a description to this package! +Description: Additional ploting tools for Octave. Categories: Plotting Depends: octave (>= 2.9.7) BuildRequires: xorg-x11-devel [Mandriva] libxorg-x11-devel
--- a/main/signal/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/signal/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Various Authors Maintainer: The Octave Community Title: Signal Processing. -Description: Add a description to this package! +Description: Signal processing tools, including filtering, windowing and display functions. Depends: octave (>= 2.9.7) License: GPL version 2 or later Url: http://octave.sf.net
--- a/main/specfun/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/specfun/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Various Authors Maintainer: The Octave Community Title: Specfun -Description: Add a description to this package! +Description: Special functions including ellipitic functions, etc Categories: Specfun Depends: octave (>= 2.9.7) License: GPL version 2 or later
--- a/main/special-matrix/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/special-matrix/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Paul Kienzle <pkienzle@users.sf.net> Maintainer: Paul Kienzle <pkienzle@users.sf.net> Title: Special Matrices. -Description: Add a description to this package! +Description: Additional Special Matrices for Octave. Categories: Special Matrices Depends: octave (>= 2.9.7) License: GPL version 2 or later
--- a/main/splines/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/splines/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Kai Habel and Paul Kienzle Maintainer: Kai Habel and Paul Kienzle Title: Splines. -Description: Add a description to this package! +Description: Additional Cubic spline functions. Categories: Splines Depends: octave (>= 2.9.7) License: GPL v2 or later, and Public Domain
--- a/main/statistics/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/statistics/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,8 @@ Author: Various Authors Maintainer: The Octave Community Title: Statistics. -Description: Add a description to this package! +Description: Additional statistics functions for Octave. +Categories: Statistics Depends: octave (>= 2.9.7) License: See individual files Url: http://octave.sf.net
--- a/main/strings/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/strings/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Various Authors Maintainer: The Octave Community Title: String Handling. -Description: Add a description to this package! +Description: Additional manipulation functions Depends: octave (>= 2.9.7) BuildRequires: libpcre-devel [Mandriva] libpcre0-devel License: See individual files
--- a/main/struct/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/struct/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Etienne Grossmann Maintainer: Etienne Grossmann Title: Structure Handling. -Description: Add a description to this package! +Description: Additional Structure manipulations functions. Categories: Structs Depends: octave (>= 2.9.7) License: GPL version 2 or later
--- a/main/symbolic/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/symbolic/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Various Authors Maintainer: The Octave Community Title: Symbolic Computations. -Description: Add a description to this package! +Description: Symbolic toolbox based on GiNaC and CLN. BuildRequires: GiNaC-devel [Mandriva] libginac1.3_0-devel Depends: octave (>= 2.9.7) License: GPL version 2 or later
--- a/main/time/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/time/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Bill Denney <bill@givebillmoney.com> Maintainer: Bill Denney <bill@givebillmoney.com> Title: Time and Dates. -Description: Add a description to this package! +Description: Additional date manipulation tools. Categories: Time Depends: octave (>= 2.9.7) License: GPL version 2 or later
--- a/main/vrml/DESCRIPTION Mon Oct 02 19:35:28 2006 +0000 +++ b/main/vrml/DESCRIPTION Mon Oct 02 19:47:38 2006 +0000 @@ -4,7 +4,7 @@ Author: Etienne Grossmann Maintainer: Etienne Grossmann Title: VRML. -Description: Add a description to this package! +Description: 3D graphics using VRML Depends: octave (>= 2.9.7) SystemRequirements: freewrl License: GPL version 2 or later
--- a/www/.cvsignore Mon Oct 02 19:35:28 2006 +0000 +++ b/www/.cvsignore Mon Oct 02 19:47:38 2006 +0000 @@ -42,3 +42,11 @@ tk_octave tsa vrml +coda +doc +.octave_hist +.octave_packages +INDEX +info-theory +odepkg +packages.in
--- a/www/Makefile Mon Oct 02 19:35:28 2006 +0000 +++ b/www/Makefile Mon Oct 02 19:47:38 2006 +0000 @@ -5,6 +5,9 @@ all: build-www doc developers.html make $(IMG_HTML) + make -k -C ../doc/coda www-dist + if [ ! -e coda ]; then rm -rf coda; fi + tar xzf ../doc/coda/out/coda-www.tar.gz build-www: ./build-www.py @@ -36,6 +39,6 @@ fi; \ fi; \ done - rm -f *.html developers.in + rm -f *.html developers.in INDEX package:
--- a/www/build-www.py Mon Oct 02 19:35:28 2006 +0000 +++ b/www/build-www.py Mon Oct 02 19:47:38 2006 +0000 @@ -43,12 +43,24 @@ def local_documentation(outdir, packdir): try: ## Copy any local documentation to packdir/local - cmd = 'find ' + packdir + ' -name "*.[hH][tT][mM][lL]" -print; find ' + packdir + ' -name "*.[hH][tT][mM]" -print' + cmd = 'find ' + packdir + ' -name "[hH][tT][mM][lL]" -type d -print; find ' + packdir + ' -name "[hH][tT][mM]" -type d -print' + docdir = None; for file in os.popen(cmd).readlines(): + name = file[:-1]; + docdir = 1; if (not os.path.exists(outdir + "/local")): os.mkdir(outdir + "/local"); - name = file[:-1]; - shutil.copy2(name, outdir + "/local/"); + for root, dirs, files in os.walk(name, topdown=False): + for file2 in files: + shutil.copy2(root + "/" + file2, outdir + "/local/"); + + if (not docdir): + cmd = 'find ' + packdir + ' -name "*.[hH][tT][mM][lL]" -print; find ' + packdir + ' -name "*.[hH][tT][mM]" -print' + for file in os.popen(cmd).readlines(): + if (not os.path.exists(outdir + "/local")): + os.mkdir(outdir + "/local"); + name = file[:-1]; + shutil.copy2(name, outdir + "/local/"); if (os.path.exists(outdir + "/local/index.html")): return "local/index.html"; @@ -57,17 +69,18 @@ elif (os.path.exists(outdir + "/local")): ## This could really be improved as it only returns the first ## html page that find returns. - cmd = 'find ' + outdir + '/local -name "*.[hH][tT][mM][lL]" -print; find ' + packdir + ' -name "*.[hH][tT][mM]" -print' - for file in os.popen(cmd).readlines(): + cmd2 = 'cd ' + outdir + '; find local -name "*.[hH][tT][mM][lL]" -print; find local -name "*.[hH][tT][mM]" -print'; + for file in os.popen(cmd2).readlines(): name = file[:-1]; - return "local" + name; + return name; + return None; else: return None; except: print("Bad copy " + packdir); return None; -def create_INDEX(desc, packdir): +def create_INDEX(desc, packdir, p): try: wd = os.getcwd(); name_version = desc['name'].lower() + "-" + desc['version']; @@ -75,24 +88,29 @@ ## Create a tarball to be installed install_dir = wd + "/install/"; tarball = name_version + ".tar.gz"; - if (os.system("tar -zcf " + tarball + " -C " + packdir + "/.. " + desc['name']) != 0): + if (os.system("tar -zcf " + tarball + " -C " + packdir + "/.. " + p) != 0): os.system("rm -rf " + tarball); raise Exception("Can't create tarball"); ## Run octave installation command = 'global OCTAVE_PACKAGE_PREFIX="' + install_dir + '"; '; command = command + 'pkg("install", "-nodeps", "' + tarball + '");'; - if (os.system("HOME=" + wd + "; octave -H -q --no-site-file --no-init-file --eval '" + command + "'") != 0): + if (os.system("HOME=" + wd + "; octave -H -q --no-site-file --no-init-file --eval '" + command + "' > /dev/null 2>&1") != 0): + os.system("ls -la " + install_dir); os.system("rm -rf " + install_dir + " " + tarball); raise Exception("Can't run Octave"); - ## Copy the INDEX file to packdir - shutil.copy2(install_dir + name_version + "/packinfo/INDEX", packdir + "/INDEX"); + ## Copy the INDEX file to local INDEX file + index = open(install_dir + name_version + "/packinfo/INDEX", "r"); + local_index = open("INDEX","a"); + local_index.writelines(index.readlines()); + local_index.close(); + index.close(); ## Clean up command = 'global OCTAVE_PACKAGE_PREFIX="' + install_dir + '"; '; - command = command + 'pkg("uninstall", "-nodeps", "' + desc['name'] + '");'; - if (os.system("HOME=" + wd + "; octave -H -q --no-site-file --no-init-file --eval '" + command + "'") != 0): + command = command + 'pkg("uninstall", "-nodeps", "' + desc['name'].lower() + '");'; + if (os.system("HOME=" + wd + "; octave -H -q --no-site-file --no-init-file --eval '" + command + "' > /dev/null 2>&1") != 0): os.system("rm -rf " + install_dir + " " + tarball); raise Exception("Can't run Octave"); os.system("rm -rf " + install_dir + " " + tarball); @@ -101,12 +119,12 @@ ## Creates the index.html files for a package in packdir. ## The result is placed in outdir. -def create_index_html(packdir, outdir): +def create_index_html(packdir, outdir, p): try: desc = parse_description(packdir + "/DESCRIPTION"); except: raise; - + ## Write header fid = open(outdir + "/index.in", "w"); fid.write("__HEADER__([[[The " + desc['name'] + " package]]])"); @@ -175,7 +193,7 @@ ## Check if the package has an INDEX file (if not create one) INDEX_file = packdir + "/INDEX"; if (not os.path.isfile(INDEX_file)): - create_INDEX(desc, packdir); + create_INDEX(desc, packdir, p); return desc; @@ -210,18 +228,21 @@ os.rmdir(os.path.join(root, name)); os.rmdir(p); -def handle_package(packdir, outdir): +def handle_package(packdir, outdir, p): if (os.path.isdir(packdir)): - if (os.path.exists(outdir)): - rm_rf(outdir); - os.mkdir(outdir); - try: - desc = create_index_html(packdir, outdir); - create_license_html(desc['name'], packdir, outdir); - return desc; - except: - rm_rf(outdir); - raise Exception("Can't create index.html"); + if (not os.path.exists(packdir + "/NOINSTALL")): + if (os.path.exists(outdir)): + rm_rf(outdir); + os.mkdir(outdir); + try: + desc = create_index_html(packdir, outdir, p); + create_license_html(desc['name'], packdir, outdir); + return desc; + except: + rm_rf(outdir); + raise Exception("Can't create index.html"); + else: + raise Exception("Package marked NOINSTALL"); raise Exception('not packdir'); def main(): @@ -239,7 +260,9 @@ index.write('<li><a href="#nonfree">Non-free packages</a> contains packages\n'); index.write('that have license issues. Usually the packages themselves are\n'); index.write('Free Software that depend on non-free libraries.</li></ul>\n'); - + if (os.path.exists("INDEX")): + os.system("rm -f INDEX"); + main_dirs = ["main", "extra", "nonfree"]; headers = ["Main repository", "Extra packages", "Non-free packages"]; for i in range(len(main_dirs)): @@ -253,22 +276,23 @@ for i in range(0, len(packages)): p = packages[i]; packdir = main_dir + p; - outdir = "./" + p; - try: - desc = handle_package(packdir, outdir); - archiv = desc['name'].lower() + '-' + desc['version'] + '.tar.gz'; - index.write('<div class="package">\n'); - index.write(' <b>' + desc['name'] + '</b>\n'); - index.write('<p>' + desc['description'][:100]); - if (len(desc['description']) > 100): - index.write('...'); - index.write('</p>\n'); - index.write('<p class="package_link">» <a href="' + outdir + '/index.html">details</a> | '); - index.write('<a href="__PACKAGE__/' + archiv + '?download">download</a></p>\n'); - index.write('</div>\n'); - except Exception, e: - print("Skipping " + p); - print(e) + if (os.path.isdir(packdir) and p != "CVS"): + outdir = "./" + p; + try: + desc = handle_package(packdir, outdir, p); + archiv = desc['name'].lower() + '-' + desc['version'] + '.tar.gz'; + index.write('<div class="package">\n'); + index.write(' <b>' + desc['name'] + '</b>\n'); + index.write('<p>' + desc['description'][:100]); + if (len(desc['description']) > 100): + index.write('...'); + index.write('</p>\n'); + index.write('<p class="package_link">» <a href="' + outdir + '/index.html">details</a> | '); + index.write('<a href="__PACKAGE__/' + archiv + '?download">download</a></p>\n'); + index.write('</div>\n'); + except Exception, e: + print("Skipping " + p); + print(e) index.write('__TRAILER__\n'); index.close();
--- a/www/docs.in Mon Oct 02 19:35:28 2006 +0000 +++ b/www/docs.in Mon Oct 02 19:47:38 2006 +0000 @@ -15,13 +15,18 @@ <a href="coda/index.html">Da Coda Al Fine: Pushing Octave's Limits</a> [<a href="coda/coda.pdf">pdf</a>, <a href="coda/coda-sgml.tar.gz">source</a>, <a href="coda-www.tar.gz">all</a>] (using C++ with Octave). </li> -<li><a href="new_developer.html">Octave-forge developer's guide</a></li> +<li><a href="developers.html">Octave-forge developer's guide</a></li> <li><a href="translation.html">Octave translator guide</a></li> <li> <a href="texmacs.pdf">TeXmacs Interface</a> - Information on using <a href="http://www.texmacs.org/">TeXmaxs</a> with octave. </li> <li><a href="octave_embed.tar.gz">Sample code for embedding octave</a></li> <li><a href="MIP73-isoheaders.tar.gz">Headers for compiling octave with SGI MIPSpro 7.3 compiler</a></li> +<li><a href="soctcl0.1.zip">Tcl package for octcl (requires octave-forge)</a></li> +<li><a +href="http://cvs.sourceforge.net/cvstarballs/octave-cvsroot.tar.bz2">Nightly +CVS tarball</a></li> +<li><a href="oct2mat.tar.gz">Primitive oct2mat converter</a></li> </ul>
--- a/www/links.in Mon Oct 02 19:35:28 2006 +0000 +++ b/www/links.in Mon Oct 02 19:47:38 2006 +0000 @@ -14,5 +14,8 @@ <p><a href="http://www.math.mcgill.ca/loisel/octave-workshop/">http://www.math.mcgill.ca/loisel/octave-workshop</a>: The Octave Workshop web page. A GUI implementation for Octave that has the goal of being completely cross platform.</p> +<p><a +href="http://perso.orange.fr/prthomas/intro.html">http://perso.orange.fr/prthomas/intro.html</a>: +Dal Segno al Coda - The octave dynamically linked function cookbook.</p> __TRAILER__
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/www/translation.in Mon Oct 02 19:47:38 2006 +0000 @@ -0,0 +1,152 @@ +__HEADER__([[[Documentation]]]) + +<h2>Octave Translation Project</h2> + +<p>Octave should be available in your own language. The original authors, being +primarily English speakers, are unable to provide this service. Instead it is +up to you, the user, to help translate Octave documentation into your language. +The Octave translation project provides the infrastructure to do so.</p> + +<h2>The idea</h2> +<p>For each function in octave, and each chapter in the octave manual, we will have +a corresponding document in the ZZ language tree containing the translation of +this document. The translation provides a function 'help', 'aide', 'ajuda', etc., +which searches for fn.ZZ and displays that instead of the original file help.</p> + +<p>We want to be able to tell if translated help is out of date with the current text +in an octave function. The plan is to generate an md5 sum for the raw octave help +string (currently extracted from DOCSTRINGS) and store that with the translated file. +When the user asks for help on the function, the help command will look for a +localized help string in the search path (e.g., file_in_loadpath('filter.pt')), +extract the octave help string, compute its md5 sum and compare it to the md5 sum +stored in the translated file. If it differs the user will be warned that the +translated help is out of date and will be given instructions to get the original help. +The octave help function will need to be extended so that it returns the raw help +string, and a second output for dispatch help.</p> + +<p>When the base text changes, translators need to know exactly how it changed. For +this reason we are storing the original text for the translation in the octave-lang +source tree and updating it whenever octave is released. We will store the revision +number of the base file in the translated file. The translator can then use e.g., +`"cvs diff -r1.2 filter" in the base directory to find out how filter has changed +between version 1.2 and the current version.</p> + +<p>Translators can also add their name and email to the translated file.</p> + +<p>The top line will look something like: +<pre> + mdf="d52f61a8b12616e7b99f7cd5ecbf18fb";rev="1.1";by="I.M. Translator <im.translator@gmail.com>" +</pre> +</p> + +<h2>Downloading and installing</h2> + +The translations are not yet complete, and no installable packages are available. + +<h2>Contributing your own translations</h2> +<p>If you want to help with the octave translation project, the tree is now available +at source-forge.</p> + +<ol> +<li>Create an account at <a href="http://sourceforge.net">SourceForge</a>. You + can choose your own source forge id SFID. </li> +<li>Send a message to <a href="mailto:octave-dev@lists.sf.net">octave-dev@lists.sf.net</a> + with your SFID. Ask to be included in the translation project.</li> + +<li>Check out the current octave language sources for your language:<br> +<pre> + export SFID=your sourceforge id + export CVS_RSH=ssh + cvs -d:ext:$SFID@cvs.sf.net:/cvsroot/octave login + cvs -d:ext:$SFID@cvs.sf.net:/cvsroot/octave co octave-lang +</pre> + +You can restrict it to a particular language ZZ using: +<pre> + cvs -d:ext:$SFID@cvs.sf.net:/cvsroot/octave co octave-lang/admin + cvs -d:ext:$SFID@cvs.sf.net:/cvsroot/octave co octave-lang/base + cvs -d:ext:$SFID@cvs.sf.net:/cvsroot/octave co octave-lang/ZZ +</pre> + +admin will contain administration tools to identify what needs to be translated. +base contains the strings which need to be translated. +ZZ contains the translations for a particular language. +</li> +</ol> + +<p>After each translation, run 'octlang tag file.ZZ' (not yet written) +which computes the md5 sum in the base directory and tags the top line of +the translation with +<pre> + mdf="$MD5SUM";rev="$REV";by="$OCTAVE_TRANSLATOR" +</pre> +where MD5SUM and REV are computed by the script and OCTAVE_TRANSLATOR is +exported from the shell. +</p> + +<h2>Maintaining your translations</h2> +<p>As octave evolves you will need to keep your translations up to date. The +script octave-lang/admin/octlang (not yet written) can help you: +<dl> +<dt>octlang missing +<dd>walk the current subtree listing all translations which are missing. +<dt>octlang updated +<dd>walk the current subtree listing all translations which are out of date. +<dt>octlang diff file.ZZ + +<dd>list differences between the original text which was translated and the +current text in base. +<dt>octlang tag file.ZZ +<dd>tag file.ZZ as up to date, marking the header with the current md5 sum +and version number from base. +</dl> + +<h2>Updating base</h2> +<p>Once per octave release, somebody will need to update the help +messages stored in the base translation tree.</p> +<ol> +<li>Download and unbundle the latest 2.9.xx development release from +<a href="http://www.octave.org/download.html">www.octave.org</a></li> +<li>Create src/DOCSTRINGS and scripts/DOCSTRINGS using: +<pre> + cd octave-2.9.xx + ./configure + (cd src && make omit_deps=1 DOCSTRINGS) + (cd scripts && make DOCSTRINGS) + +</pre> +</li> +<li>Update base docs using: +<pre> + export OCTAVE_ROOT=~/Downloads/octave-2.9.xx + cd octave-lang/base/octave/help + ../../../admin/split_docstrings $OCTAVE_ROOT/src/DOCSTRINGS + ../../../admin/split_docstrings $OCTAVE_ROOT/scripts/DOCSTRINGS +</pre> +</li> +<li>Compare new base docs to those on the server: +<pre> + cvs -q update -dp +</pre> +Those that have been updated since the last release will be +marked <em>M</em>. Those that are new will be marked <em>?</em>. +You won't be able to tell if any have been deleted. + +</li> +<li>Inform server of new docs: +<pre> + cvs add ... +</pre> +where <em>...</em> is the list of names marked by <em>?</em>. +</li> +<li>Update server with new base docs and tag it with the new version: +<pre> + cvs commit + cvs tag ss-2-9-xx + +</pre> +</li> +</ol> + + +__TRAILER__