branch: elpa/caml commit ab175f6894e6cd0603c1ddb31529acca3f9ab0e1 Author: Christophe Troestler <christophe.troest...@umons.ac.be> Commit: Christophe Troestler <christophe.troest...@umons.ac.be>
Get the synopsis from caml.el --- Makefile | 9 +++++---- caml-mode.opam | 1 + caml.el | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 36c97ce..f1b3944 100644 --- a/Makefile +++ b/Makefile @@ -14,8 +14,8 @@ VERSION = $(shell grep "^;; *Version" caml.el \ | sed -e 's/;; *Version: *\([^ \t]*\)/\1/') -DESCRIPTION = $(shell grep ';;; caml.el ---' caml.el \ - | sed 's/[^-]*--- *\(.*\)/\1/') +SYNOPSIS = $(shell grep ';;; caml.el ---' caml.el \ + | sed 's/[^-]*--- *\([^-]\+\) \+.*/\1/') DIST_NAME = caml-mode-$(VERSION) TARBALL = caml-mode-$(VERSION).tgz OPAM_FILE = packages/caml-mode/caml-mode.$(VERSION)/opam @@ -99,7 +99,7 @@ tarball: $(TARBALL) $(TARBALL): $(DIST_FILES) $(INSTALL_MKDIR) $(DIST_NAME) for f in $(DIST_FILES); do cp $$f $(DIST_NAME); done - echo "(define-package \"caml\" \"$(VERSION)\" \"$(DESCRIPTION)\" \ + echo "(define-package \"caml\" \"$(VERSION)\" \"$(SYNOPSIS)\" \ )" > $(DIST_NAME)/caml-pkg.el tar acvf $@ $(DIST_NAME) $(INSTALL_RM_R) $(DIST_NAME) @@ -110,7 +110,8 @@ submit: $(TARBALL) exit 1; \ fi $(INSTALL_MKDIR) $(dir $(OPAM_FILE)) - sed -e "s/VERSION/$(VERSION)/" caml-mode.opam > $(OPAM_FILE) + sed -e "s/VERSION/$(VERSION)/" -e 's/SYNOPSIS/$(SYNOPSIS)/' \ + caml-mode.opam > $(OPAM_FILE) echo "url {" >> $(OPAM_FILE) echo " src: \"https://github.com/ocaml/caml-mode/releases/download/$(VERSION)/$(TARBALL)\"" >> $(OPAM_FILE) echo " checksum: \"md5=`md5sum $(TARBALL) | cut -d ' ' -f 1`\"" \ diff --git a/caml-mode.opam b/caml-mode.opam index bf63a00..0407fc2 100644 --- a/caml-mode.opam +++ b/caml-mode.opam @@ -26,3 +26,4 @@ post-messages: """ If you have not yet done so, please add in ~/.emacs.d/init.el or in ~/.emacs to following line: (add-to-list 'load-path "%{share}%/emacs/site-lisp/")""" {success} +synopsis: "SYNOPSIS" diff --git a/caml.el b/caml.el index 58626a6..4494ced 100644 --- a/caml.el +++ b/caml.el @@ -1,4 +1,4 @@ -;;; caml.el --- OCaml code editing commands for Emacs -*- lexical-binding: t; -*- +;;; caml.el --- Caml mode for GNU Emacs and XEmacs -*- lexical-binding: t; -*- ;; Copyright (C) 1997-2017 Institut National de Recherche en Informatique et en Automatique.