From bug-request at octave dot org Tue Jan 10 07:17:10 2006 Subject: [PATCH] Fix install-oct From: Ismail Donmez To: bug at octave dot org Date: Tue, 10 Jan 2006 15:14:35 +0200 --Boundary-00=_8M7wDETeW9HIVYC Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 --Boundary-00=_8M7wDETeW9HIVYC Content-Type: text/x-diff; charset="utf-8"; name="install-oct.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="install-oct.patch" --- 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 --Boundary-00=_8M7wDETeW9HIVYC-- ------------------------------------------------------------- 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 -------------------------------------------------------------