From bug-request at octave dot org Tue Jan 10 08:58:07 2006 Subject: Re: [PATCH] Fix install-oct From: David Bateman To: Ismail Donmez Cc: bug at octave dot org Date: Tue, 10 Jan 2006 15:53:41 +0100 Ismail Donmez wrote: > Hi all, > > I was getting following error when I issued make install-oct under src > direcotory ( with octave 2.9.4 ) : > > <--- snip ---> > ../mkinstalldirs /usr/libexec/octave/2.9.4/oct/i686-pc-linux-gnu > if [ -n " balance.oct besselj.oct betainc.oct cellfun.oct chol.oct > ccolamd.oct colamd.oct colloc.oct daspk.oct dasrt.oct dassl.oct > det.oct > dispatch.oct eig.oct expm.oct fft.oct fft2.oct fftn.oct > fftw_wisdom.oct > filter.oct find.oct fsolve.oct gammainc.oct gcd.oct getgrent.oct > getpwent.oct getrusage.oct givens.oct hess.oct inv.oct kron.oct > lpsolve.oct lsode.oct lu.oct luinc.oct matrix_type.oct minmax.oct > pinv.oct qr.oct quad.oct qz.oct rand.oct schur.oct sort.oct > sparse.oct > spchol.oct spdet.oct spkron.oct splu.oct spparms.oct sqrtm.oct > svd.oct > syl.oct time.oct gplot.oct __glpk__.oct __qp__.oct" ]; then \ > xfiles=" balance.oct besselj.oct betainc.oct cellfun.oct chol.oct > ccolamd.oct colamd.oct colloc.oct daspk.oct dasrt.oct dassl.oct > det.oct > dispatch.oct eig.oct expm.oct fft.oct fft2.oct fftn.oct > fftw_wisdom.oct > filter.oct find.oct fsolve.oct gammainc.oct gcd.oct getgrent.oct > getpwent.oct getrusage.oct givens.oct hess.oct inv.oct kron.oct > lpsolve.oct lsode.oct lu.oct luinc.oct matrix_type.oct minmax.oct > pinv.oct qr.oct quad.oct qz.oct rand.oct schur.oct sort.oct > sparse.oct > spchol.oct spdet.oct spkron.oct splu.oct spparms.oct sqrtm.oct > svd.oct > syl.oct time.oct gplot.oct __glpk__.oct __qp__.oct"; \ > for f in $xfiles; do \ > /usr/bin/install -c $f > /usr/libexec/octave/2.9.4/oct/i686-pc-linux-gnu/$f; > \ > done; \ > ./mk-pkg-add --prefix /usr/libexec/octave/2.9.4/oct/i686-pc-linux-gnu > balance.df besselj.df betainc.df cellfun.df chol.df ccolamd.df > colamd.df colloc.df daspk.df dasrt.df dassl.df det.df dispatch.df > eig.df expm.df fft.df fft2.df fftn.df fftw_wisdom.df filter.df > find.df > fsolve.df gammainc.df gcd.df getgrent.df getpwent.df getrusage.df > givens.df hess.df inv.df kron.df lpsolve.df lsode.df lu.df > luinc.df > matrix_type.df minmax.df pinv.df qr.df quad.df qz.df rand.df > schur.df > sort.df sparse.df spchol.df spdet.df spkron.df splu.df spparms.df > sqrtm.df svd.df syl.df time.df gplot.df __glpk__.df __qp__.df > > /usr/libexec/octave/2.9.4/oct/i686-pc-linux-gnu/PKG_ADD ; > /bin/sh: -c: line 1: syntax error: unexpected end of file > make: *** [install-oct] Hata 2 > > <--- snip ---> > > Attached patch fixed the problem for me and it looks correct. Can it be > applied? > > Regards, > ismail > >------------------------------------------------------------------------ > >--- octave-2.9.4/src/Makefile.in 2005-11-11 21:48:04.000000000 +0200 >+++ octave-fixed/src/Makefile.in 2006-01-10 13:58:42.000000000 +0200 > at @ -403,7 +403,7 @@ > for f in $$xfiles; do \ > $(INSTALL_PROGRAM) $$f $(DESTDIR)$(octfiledir)/$$f; \ > done; \ >- $(srcdir)/mk-pkg-add --prefix $(octfiledir) $(DLD_DEF_FILES) > $(DESTDIR)$(octfiledir)/PKG_ADD >+ $(srcdir)/mk-pkg-add --prefix $(octfiledir) $(DLD_DEF_FILES) > $(DESTDIR)$(octfiledir)/PKG_ADD; \ > fi > .PHONY: install-oct > > > This appears to already be fixed in the CVS... D. -- David Bateman David dot Bateman at motorola dot com Motorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax) 91193 Gif-Sur-Yvette FRANCE The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------