emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/caml 742a910 01/10: Get the synopsis from caml.el


From: ELPA Syncer
Subject: [nongnu] elpa/caml 742a910 01/10: Get the synopsis from caml.el
Date: Wed, 25 Aug 2021 02:57:17 -0400 (EDT)

branch: elpa/caml
commit 742a910dd40e5600461085e2735fa3a2ebbd8736
Author: Christophe Troestler <Christophe.Troestler@umons.ac.be>
Commit: Christophe Troestler <Christophe.Troestler@umons.ac.be>

    Get the synopsis from caml.el
---
 Makefile       | 11 ++++++-----
 caml-mode.opam |  1 +
 caml.el        |  2 +-
 3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index 36c97ce..8b44045 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,8 +99,8 @@ 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)\" \
-               )" > $(DIST_NAME)/caml-pkg.el
+       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.
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]