# HG changeset patch # User Rik # Date 1261296166 28800 # Node ID 12dd0a7597ff9615c515ac9a9f43cc07b1d27d14 # Parent 061ea41a3da7235e5db79169cdf0c63b8edebaad Distribute emacs specific files from emacs directory rather than examples directory diff -r 061ea41a3da7 -r 12dd0a7597ff ChangeLog --- a/ChangeLog Sat Dec 19 23:35:29 2009 -0800 +++ b/ChangeLog Sun Dec 20 00:02:46 2009 -0800 @@ -1,3 +1,9 @@ +2009-12-19 Rik + + * emacs/module.mk, examples/Makefile.am, info-emacs-info, + info-emacs-octave-help: Distribute emacs specific files from emacs + directory rather than examples directory + 2009-12-19 Rik * m4/module.mk, Makefile.am: Redo previous patch with distribution diff -r 061ea41a3da7 -r 12dd0a7597ff emacs/info-emacs-info --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emacs/info-emacs-info Sun Dec 20 00:02:46 2009 -0800 @@ -0,0 +1,34 @@ +#! /bin/sh +# info-emacs-info +# +# Copyright (C) 1996, 2005, 2007 Kurt Hornik +# +# This file is part of Octave. +# +# Octave is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 3 of the License, or (at +# your option) any later version. +# +# Octave is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with Octave; see the file COPYING. If not, see +# . + +# Written by Kurt Hornik on 1996/07/01 + +# Make Octave's `help -i' use Emacs info. +# Requires a running Emacs and gnuserv. +cmd="(Info-find-node \"$2\" \"Top\")" +if [ $3 = "--directory" ]; +then + cmd="(add-to-list 'Info-directory-list \"$4\") $cmd" + shift 2 +fi +cmd="(require 'info) $cmd" +[ $4 ] && cmd="$cmd (Info-index \"$4\")" +gnuclient -batch -q -eval "$cmd" diff -r 061ea41a3da7 -r 12dd0a7597ff emacs/info-emacs-octave-help --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emacs/info-emacs-octave-help Sun Dec 20 00:02:46 2009 -0800 @@ -0,0 +1,35 @@ +#! /bin/sh +# info-emacs-octave-help +# +# Copyright (C) 1996, 1997, 2005, 2007 Kurt Hornik +# +# This file is part of Octave. +# +# Octave is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 3 of the License, or (at +# your option) any later version. +# +# Octave is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with Octave; see the file COPYING. If not, see +# . + +# Written by KH on 1996/07/01 +# Updated by KH on 1997/03/04 + +# Make Octave's `help -i' use Emacs octave-help. +# Requires a running Emacs and gnuserv. + +cmd="(require 'octave-hlp)" +if [ $3 = "--directory" ]; +then + cmd="$cmd (add-to-list 'Info-directory-list \"$4\")" + shift 2 +fi +cmd="$cmd (octave-help \"$4\")" +gnuclient -batch -q -eval "$cmd" diff -r 061ea41a3da7 -r 12dd0a7597ff emacs/module.mk --- a/emacs/module.mk Sat Dec 19 23:35:29 2009 -0800 +++ b/emacs/module.mk Sun Dec 20 00:02:46 2009 -0800 @@ -1,10 +1,15 @@ +dist_archlib_SCRIPTS = emacs/info-emacs-info emacs/info-emacs-octave-help + EXTRA_DIST += \ emacs/NEWS \ emacs/README \ emacs/TODO \ + emacs/info-emacs-info \ + emacs/info-emacs-octave-help \ emacs/module.mk \ emacs/octave-hlp.el \ emacs/octave-inf.el \ emacs/octave-mod.el \ emacs/octave-tags \ emacs/octave-tags.1 + diff -r 061ea41a3da7 -r 12dd0a7597ff examples/Makefile.am --- a/examples/Makefile.am Sat Dec 19 23:35:29 2009 -0800 +++ b/examples/Makefile.am Sun Dec 20 00:02:46 2009 -0800 @@ -20,8 +20,6 @@ include $(top_srcdir)/common.mk -dist_archlib_SCRIPTS = info-emacs-info info-emacs-octave-help - IMAGE_FILES = octave-sombrero.png image_DATA = $(IMAGE_FILES) diff -r 061ea41a3da7 -r 12dd0a7597ff examples/info-emacs-info --- a/examples/info-emacs-info Sat Dec 19 23:35:29 2009 -0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -#! /bin/sh -# info-emacs-info -# -# Copyright (C) 1996, 2005, 2007 Kurt Hornik -# -# This file is part of Octave. -# -# Octave is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the -# Free Software Foundation; either version 3 of the License, or (at -# your option) any later version. -# -# Octave is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -# for more details. -# -# You should have received a copy of the GNU General Public License -# along with Octave; see the file COPYING. If not, see -# . - -# Written by Kurt Hornik on 1996/07/01 - -# Make Octave's `help -i' use Emacs info. -# Requires a running Emacs and gnuserv. -cmd="(Info-find-node \"$2\" \"Top\")" -if [ $3 = "--directory" ]; -then - cmd="(add-to-list 'Info-directory-list \"$4\") $cmd" - shift 2 -fi -cmd="(require 'info) $cmd" -[ $4 ] && cmd="$cmd (Info-index \"$4\")" -gnuclient -batch -q -eval "$cmd" diff -r 061ea41a3da7 -r 12dd0a7597ff examples/info-emacs-octave-help --- a/examples/info-emacs-octave-help Sat Dec 19 23:35:29 2009 -0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -#! /bin/sh -# info-emacs-octave-help -# -# Copyright (C) 1996, 1997, 2005, 2007 Kurt Hornik -# -# This file is part of Octave. -# -# Octave is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the -# Free Software Foundation; either version 3 of the License, or (at -# your option) any later version. -# -# Octave is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -# for more details. -# -# You should have received a copy of the GNU General Public License -# along with Octave; see the file COPYING. If not, see -# . - -# Written by KH on 1996/07/01 -# Updated by KH on 1997/03/04 - -# Make Octave's `help -i' use Emacs octave-help. -# Requires a running Emacs and gnuserv. - -cmd="(require 'octave-hlp)" -if [ $3 = "--directory" ]; -then - cmd="$cmd (add-to-list 'Info-directory-list \"$4\")" - shift 2 -fi -cmd="$cmd (octave-help \"$4\")" -gnuclient -batch -q -eval "$cmd"