Skip to content

Commit

Permalink
Make things in contrib directory installable.
Browse files Browse the repository at this point in the history
* Makefile (SUBDIRS): Add contrib.
  (all): Add contrib.
  (contrib): New target that compiles things in the contrib directory.
  (install-bin): Add contrib.  Install things in the contrib directory.
  Also install uncompiled things in the experimental directory.

* contrib/Makefile: New Makefile for the contrib directory.

* contrib/httpd.el (httpd-start): Fix compiler warnings.

* debian/emacsen-install: Compile files in contrib directory in addition
  to the normal fare.  Thanks to Junichi Uekawa for the suggestion.

* debian/emacsen-startup: Add contrib directory to load-path.

* experimental/Makefile (test): Remove target.
  (install-uncompiled): New target that installs uncompiled files.

* lisp/muse.el: Set version to 3.02.90 (3.03 RC1).
  (muse-update-file-extension): Fix a warning that occurred when doing
  batch publishing.
git-archimport-id: mwolson@gnu.org--2006/muse--main--1.0--patch-96
  • Loading branch information
mwolson committed Apr 8, 2006
1 parent 16c5ac6 commit eb415bf
Show file tree
Hide file tree
Showing 11 changed files with 127 additions and 51 deletions.
38 changes: 38 additions & 0 deletions ChangeLog.2006
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,6 +2,44 @@
# arch-tag: automatic-ChangeLog--mwolson@gnu.org--2006/muse--main--1.0 # arch-tag: automatic-ChangeLog--mwolson@gnu.org--2006/muse--main--1.0
# #


2006-04-08 02:46:41 GMT Michael Olson <mwolson@gnu.org> patch-96

Summary:
Make things in contrib directory installable.
Revision:
muse--main--1.0--patch-96

* Makefile (SUBDIRS): Add contrib.
(all): Add contrib.
(contrib): New target that compiles things in the contrib directory.
(install-bin): Add contrib. Install things in the contrib directory.
Also install uncompiled things in the experimental directory.

* contrib/Makefile: New Makefile for the contrib directory.

* contrib/httpd.el (httpd-start): Fix compiler warnings.

* debian/emacsen-install: Compile files in contrib directory in addition
to the normal fare. Thanks to Junichi Uekawa for the suggestion.

* debian/emacsen-startup: Add contrib directory to load-path.

* experimental/Makefile (test): Remove target.
(install-uncompiled): New target that installs uncompiled files.

* lisp/muse.el: Set version to 3.02.90 (3.03 RC1).
(muse-update-file-extension): Fix a warning that occurred when doing
batch publishing.

new files:
contrib/.arch-ids/Makefile.id contrib/Makefile

modified files:
ChangeLog.2006 Makefile Makefile.defs contrib/httpd.el
debian/changelog debian/emacsen-install debian/emacsen-startup
experimental/Makefile lisp/muse.el muse.texi


2006-04-08 01:33:27 GMT Michael Olson <mwolson@gnu.org> patch-95 2006-04-08 01:33:27 GMT Michael Olson <mwolson@gnu.org> patch-95


Summary: Summary:
Expand Down
13 changes: 9 additions & 4 deletions Makefile
Original file line number Original file line Diff line number Diff line change
@@ -1,15 +1,18 @@
.PHONY: all lisp autoloads examples experimental doc clean realclean distclean fullclean install-info install-bin install test dist release debbuild debrevision debrelease upload .PHONY: all lisp contrib autoloads examples experimental doc clean realclean distclean fullclean install-info install-bin install test dist release debbuild debrevision debrelease upload
.PRECIOUS: %.info %.html .PRECIOUS: %.info %.html


include Makefile.defs include Makefile.defs


SUBDIRS = lisp examples experimental SUBDIRS = lisp contrib examples experimental


all: autoloads lisp muse.info all: autoloads lisp contrib muse.info


lisp: lisp:
(cd lisp && $(MAKE)) (cd lisp && $(MAKE))


contrib:
(cd contrib && $(MAKE))

autoloads: autoloads:
(cd lisp && $(MAKE) autoloads) (cd lisp && $(MAKE) autoloads)


Expand Down Expand Up @@ -41,8 +44,10 @@ install-info: muse.info
install -m 0644 muse.info $(INFODIR)/muse install -m 0644 muse.info $(INFODIR)/muse
$(INSTALLINFO) $(INFODIR)/muse $(INSTALLINFO) $(INFODIR)/muse


install-bin: lisp install-bin: lisp contrib
(cd lisp && $(MAKE) install) (cd lisp && $(MAKE) install)
(cd contrib && $(MAKE) install)
(cd experimental && $(MAKE) install-uncompiled)


install: install-bin install-info install: install-bin install-info


Expand Down
2 changes: 1 addition & 1 deletion Makefile.defs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ INSTALLINFO = install-info --info-dir=$(INFODIR)
#INSTALLINFO = install-info --section "Emacs" "emacs" --info-dir=$(INFODIR) #INSTALLINFO = install-info --section "Emacs" "emacs" --info-dir=$(INFODIR)


# Useful only for the maintainer # Useful only for the maintainer
VERSION = 3.02.6.arch.93 VERSION = 3.02.90.arch.96
LASTUPLOAD = 3.02.6-2 LASTUPLOAD = 3.02.6-2
BUILDOPTS = BUILDOPTS =
25 changes: 25 additions & 0 deletions contrib/Makefile
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,25 @@
.PHONY: all contrib clean realclean distclean fullclean install
.PRECIOUS: %.elc

include ../Makefile.defs

EL = $(wildcard *.el)
ELC = $(patsubst %.el,%.elc,$(EL))

all: contrib

contrib: $(ELC)

muse-build.elc: ../scripts/muse-build.el
@echo muse-build.el is not byte-compiled

%.elc: %.el
@$(EMACS) -q $(SITEFLAG) -batch -l ../scripts/muse-build.el \
-f batch-byte-compile $<

clean realclean distclean fullclean:
-rm -f *.elc *~

install: lisp
install -d $(ELISPDIR)/contrib
install -m 0644 $(EL) $(ELC) $(ELISPDIR)/contrib
13 changes: 8 additions & 5 deletions contrib/httpd.el
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -253,11 +253,11 @@ content.")
))) )))


(defun httpd-start (&optional port) (defun httpd-start (&optional port)
(interactive (list (read-input "Serve Web requests on port: " "8080"))) (interactive (list (read-string "Serve Web requests on port: " "8080")))
(if (null port) (if (null port)
(setq port 8080) (setq port 8080)
(if (stringp port) (if (stringp port)
(setq port (string-to-int port)))) (setq port (string-to-number port))))
(if httpd-process (if httpd-process
(delete-process httpd-process)) (delete-process httpd-process))
(setq httpd-process (setq httpd-process
Expand All @@ -267,9 +267,12 @@ content.")
:host 'local :service port :host 'local :service port
:server t :noquery t :server t :noquery t
:filter 'httpd-serve) :filter 'httpd-serve)
(open-network-stream-server "httpd" (generate-new-buffer "httpd") (and (fboundp 'open-network-stream-server)
port nil 'httpd-serve))) (open-network-stream-server "httpd"
(if (eq (process-status httpd-process) 'listen) (generate-new-buffer "httpd")
port nil 'httpd-serve))))
(if (and (processp httpd-process)
(eq (process-status httpd-process) 'listen))
(message "httpd.el is listening on port %d" port))) (message "httpd.el is listening on port %d" port)))


(defun httpd-stop () (defun httpd-stop ()
Expand Down
8 changes: 6 additions & 2 deletions debian/changelog
Original file line number Original file line Diff line number Diff line change
@@ -1,8 +1,12 @@
muse-el (3.02.6.arch.93-1) unstable; urgency=low muse-el (3.02.90.arch.96-1) unstable; urgency=low


* New Arch snapshot. * New Arch snapshot.
* Bug fix: "muse-el: Doesn't escape specials when publish using the
latex style", thanks to Jeremy Hankins (Closes: #340620).
* Bug fix: "muse-el: muse-http.el is not functional", thanks to Junichi
Uekawa (Closes: #357949).


-- Michael W. Olson (GNU address) <mwolson@gnu.org> Fri, 7 Apr 2006 21:20:11 -0400 -- Michael W. Olson (GNU address) <mwolson@gnu.org> Fri, 7 Apr 2006 21:45:14 -0400


muse-el (3.02.6-2) unstable; urgency=low muse-el (3.02.6-2) unstable; urgency=low


Expand Down
49 changes: 23 additions & 26 deletions debian/emacsen-install
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -19,34 +19,31 @@ else
SITEFLAG="--no-site-file" SITEFLAG="--no-site-file"
fi fi
FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
ELPREFIX=/usr/share/emacs/site-lisp/${PACKAGE}


ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} for i in ${PACKAGE} ${PACKAGE}/contrib; do
ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}

ELDIR=/usr/share/emacs/site-lisp/$i
# Install-info-altdir does not actually exist. ELCDIR=/usr/share/${FLAVOR}/site-lisp/$i
# Maybe somebody will write it.
# if test -x /usr/sbin/install-info-altdir; then install -m 755 -d ${ELCDIR}
# echo install/${PACKAGE}: install Info links for ${FLAVOR} cd ${ELDIR}
# install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz FILES=`ls -1 *.el | grep -v autoloads`
# fi rm -f ${ELCDIR}/*.el

cp ${FILES} ${ELCDIR}
install -m 755 -d ${ELCDIR} cd ${ELCDIR}
cd ${ELDIR}
FILES=`ls -1 *.el | grep -v autoloads` cat << EOF > path.el
rm -f ${ELCDIR}/*.el (setq load-path (cons "${ELPREFIX}" (cons "${ELPREFIX}/contrib" load-path))
cp ${FILES} ${ELCDIR}
cd ${ELCDIR}

cat << EOF > path.el
(setq load-path (cons "." (cons "${ELDIR}/contrib" load-path))
byte-compile-warnings nil) byte-compile-warnings nil)
EOF EOF
${FLAVOR} ${FLAGS} ${FILES} 2>&1 | gzip -9qf > CompilationLog.gz ${FLAVOR} ${FLAGS} ${FILES} 2>&1 | gzip -9qf > CompilationLog.gz
rm -f *.el path.el rm -f *.el path.el
( cd ${ELDIR} ( cd ${ELDIR}
for f in *.el; do for f in *.el; do
ln -sf ${ELDIR}/${f} ${ELCDIR}/${f} ln -sf ${ELDIR}/${f} ${ELCDIR}/${f}
done done
) )
done


exit 0 exit 0
9 changes: 6 additions & 3 deletions debian/emacsen-startup
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
;; Originally contributed by Nils Naumann <naumann@unileoben.ac.at> ;; Originally contributed by Nils Naumann <naumann@unileoben.ac.at>
;; Modified by Dirk Eddelbuettel <edd@debian.org> ;; Modified by Dirk Eddelbuettel <edd@debian.org>
;; Adapted for dh-make by Jim Van Zandt <jrv@vanzandt.mv.com> ;; Adapted for dh-make by Jim Van Zandt <jrv@vanzandt.mv.com>
;; Adapted for Muse by Michael Olson <mwolson@gnu.org>


;; The muse package follows the Debian/GNU Linux 'emacsen' policy and ;; The muse package follows the Debian/GNU Linux 'emacsen' policy and
;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, ;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
Expand All @@ -14,8 +15,10 @@


;; Add the source file ;; Add the source file
(when (fboundp 'debian-pkg-add-load-path-item) (when (fboundp 'debian-pkg-add-load-path-item)
(debian-pkg-add-load-path-item (concat "/usr/share/" (let ((prefix (concat "/usr/share/"
(symbol-name flavor) (symbol-name flavor)
"/site-lisp/muse-el"))) "/site-lisp/muse-el")))
(debian-pkg-add-load-path-item prefix)
(debian-pkg-add-load-path-item (concat prefix "/contrib"))))


(load "muse-autoloads.el") (load "muse-autoloads.el")
8 changes: 4 additions & 4 deletions experimental/Makefile
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all lisp clean realclean distclean fullclean install test .PHONY: all experimental clean realclean distclean fullclean install install-uncompiled
.PRECIOUS: %.elc .PRECIOUS: %.elc


include ../Makefile.defs include ../Makefile.defs
Expand All @@ -24,6 +24,6 @@ install: $(ELC)
install -d $(ELISPDIR)/experimental install -d $(ELISPDIR)/experimental
install -m 0644 $(EL) $(ELC) $(ELISPDIR)/experimental install -m 0644 $(EL) $(ELC) $(ELISPDIR)/experimental


test: $(ELC) install-uncompiled:
$(EMACS) -q $(SITEFLAG) -batch -l ../scripts/muse-build.el \ install -d $(ELISPDIR)/experimental
-f muse-elint-files muse-*.el install -m 0644 $(EL) $(ELISPDIR)/experimental
11 changes: 6 additions & 5 deletions lisp/muse.el
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@


;; Emacs Lisp Archive Entry ;; Emacs Lisp Archive Entry
;; Filename: muse.el ;; Filename: muse.el
;; Version: 3.02.6 ;; Version: 3.02.90 (3.03 RC1)
;; Date: Sat 12-Jan-2006 ;; Date: Fri 7-Apr-2006
;; Keywords: hypermedia ;; Keywords: hypermedia
;; Author: John Wiegley (johnw AT gnu DOT org) ;; Author: John Wiegley (johnw AT gnu DOT org)
;; Maintainer: Michael Olson (mwolson AT gnu DOT org) ;; Maintainer: Michael Olson (mwolson AT gnu DOT org)
Expand Down Expand Up @@ -45,7 +45,7 @@


;;; Code: ;;; Code:


(defvar muse-version "3.02.6" (defvar muse-version "3.02.90"
"The version of Muse currently loaded") "The version of Muse currently loaded")


(defun muse-version (&optional insert) (defun muse-version (&optional insert)
Expand Down Expand Up @@ -83,15 +83,16 @@ This is autogenerated from `muse-ignored-extensions'.")


(defun muse-update-file-extension (sym val) (defun muse-update-file-extension (sym val)
"Update the value of `muse-file-extension'." "Update the value of `muse-file-extension'."
(when (and (boundp sym) (symbol-value sym)) (when (and (boundp sym) (symbol-value sym)
(featurep 'muse-mode))
;; remove old auto-mode-alist association ;; remove old auto-mode-alist association
(setq auto-mode-alist (setq auto-mode-alist
(delete (cons (concat "\\." (symbol-value sym) "\\'") (delete (cons (concat "\\." (symbol-value sym) "\\'")
'muse-mode-choose-mode) 'muse-mode-choose-mode)
auto-mode-alist))) auto-mode-alist)))
(set sym val) (set sym val)
;; associate .muse with muse-mode ;; associate .muse with muse-mode
(when val (when (and val (featurep 'muse-mode))
(add-to-list 'auto-mode-alist (add-to-list 'auto-mode-alist
(cons (concat "\\." val "\\'") (cons (concat "\\." val "\\'")
'muse-mode-choose-mode))) 'muse-mode-choose-mode)))
Expand Down
2 changes: 1 addition & 1 deletion muse.texi
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@syncodeindex fn cp @syncodeindex fn cp


@copying @copying
This manual is for the Emacs Muse version 3.02.6. This manual is for the Emacs Muse version 3.02.90 (3.03 RC1).


Copyright @copyright{} 2004, 2005, 2006 Free Software Foundation, Inc. Copyright @copyright{} 2004, 2005, 2006 Free Software Foundation, Inc.


Expand Down

0 comments on commit eb415bf

Please sign in to comment.