[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/bnf-mode 1dda3ef 40/74: Provide ability to make plain t
From: |
Stefan Monnier |
Subject: |
[elpa] externals/bnf-mode 1dda3ef 40/74: Provide ability to make plain text README |
Date: |
Thu, 9 May 2019 08:27:49 -0400 (EDT) |
branch: externals/bnf-mode
commit 1dda3ef5f837959d007512d1278a02cf5babfe8e
Author: Serghei Iakovlev <address@hidden>
Commit: Serghei Iakovlev <address@hidden>
Provide ability to make plain text README
---
.gitignore | 2 ++
Makefile | 18 ++++++++++++++++--
README.org | 15 +++++++--------
bnf-mode.el | 2 +-
4 files changed, 26 insertions(+), 11 deletions(-)
diff --git a/.gitignore b/.gitignore
index ff957d8..87befbc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,5 @@
*~
*.elc
.cask/
+README
+README.org2
diff --git a/Makefile b/Makefile
index b3b7887..cd6314d 100644
--- a/Makefile
+++ b/Makefile
@@ -21,8 +21,14 @@
SHELL := $(shell which bash)
ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
+
EMACS := emacs
CASK = cask
+PANDOC ?= pandoc \
+ --fail-if-warnings \
+ --reference-links \
+ --atx-headers
+
EMACSFLAGS ?=
TESTFLAGS ?=
PKGDIR := $(shell EMACS=$(EMACS) $(CASK) package-directory)
@@ -31,6 +37,8 @@ PKGDIR := $(shell EMACS=$(EMACS) $(CASK) package-directory)
SRCS = bnf-mode.el
OBJS = $(SRCS:.el=.elc)
+VERSION ?= $(shell $(CASK) version)
+
.SILENT: ; # no need for @
.ONESHELL: ; # recipes execute in same shell
.NOTPARALLEL: ; # wait for this target to finish
@@ -60,12 +68,17 @@ $(PKGDIR): Cask
$(CASK) install
touch $(PKGDIR)
+README: README.org2
+ $(PANDOC) -f org+empty_paragraphs -t plain -o $@ $^
+
+README.org2: README.org
+ $(shell cat $^ | sed -e "s/\[\[.*\.svg\]\]//g" > $@)
+
# Public targets
.PHONY: .title
.title:
- $(info BNF Mode $(shell cat $(ROOT_DIR)/$(SRCS) | grep ";; Version:" |
awk -F': ' '{print $$2}'))
- $(info )
+ $(info BNF Mode $(VERSION))
.PHONY: init
init: $(PKGDIR)
@@ -84,6 +97,7 @@ test:
.PHONY: clean
clean:
$(CASK) clean-elc
+ $(RM) -f README README.org2
.PHONY: help
help: .title
diff --git a/README.org b/README.org
index 607cbb2..08e26c2 100644
--- a/README.org
+++ b/README.org
@@ -1,5 +1,4 @@
-#+TITLE: BNF Mode for GNU Emacs
-#+AUTHOR: Serghei Iakovlev
+* BNF Mode for GNU Emacs
[[https://www.gnu.org/licenses/gpl-3.0.txt][https://img.shields.io/badge/license-GPL_3-green.svg]]
[[https://travis-ci.com/sergeyklay/bnf-mode][https://travis-ci.com/sergeyklay/bnf-mode.svg]]
@@ -58,7 +57,7 @@ Stable:
(package-initialize)
#+end_src
-For those who want rolling releases as they happen use MELPA :
+For those who want rolling releases as they happen use MELPA:
#+begin_src emacs-lisp
(require 'package)
@@ -72,7 +71,7 @@ the package listing and install ~bnf-mode~ from there. MELPA
tracks this Git re
and updates relatively soon after each commit or formal release. For more
detail on
setting up see [[https://melpa.org/#/getting-started][MELPA Getting Started]].
-You can install ~bnf-mode~ manually by adding following to your init file :
+You can install ~bnf-mode~ manually by adding following to your init file:
#+begin_src emacs-lisp
(unless (package-installed-p 'bnf-mode)
@@ -82,7 +81,7 @@ You can install ~bnf-mode~ manually by adding following to
your init file :
**** Using Cask
-Add following to your [[https://cask.github.io/][Cask]] file :
+Add following to your [[https://cask.github.io/][Cask]] file:
#+begin_src emacs-lisp
(source melpa)
@@ -92,7 +91,7 @@ Add following to your [[https://cask.github.io/][Cask]] file :
**** Using use-package
-Add following to your init file :
+Add following to your init file:
#+begin_src emacs-lisp
(use-package bnf-mode
@@ -103,7 +102,7 @@ Add following to your init file :
*** El-get
-If you use el-get, just create a recipe file ~bnf.rcp~ :
+If you use el-get, just create a recipe file ~bnf.rcp~:
#+begin_src emacs-lisp
(:name bnf-mode
@@ -114,7 +113,7 @@ If you use el-get, just create a recipe file ~bnf.rcp~ :
#+end_src
and add it to a directory present in ~el-get-recipe-path~.
-Then, use ~M-x el-get-install <RET> bnf-mode~ or add :
+Then, use ~M-x el-get-install <RET> bnf-mode~ or add:
#+begin_src emacs-lisp
(el-get-bundle bnf-mode)
diff --git a/bnf-mode.el b/bnf-mode.el
index a2188fd..d589f66 100644
--- a/bnf-mode.el
+++ b/bnf-mode.el
@@ -1,4 +1,4 @@
-;;; bnf-mode.el --- Major mode for editing BNF grammars -*- lexical-binding:
t; -*-
+;;; bnf-mode.el --- Major mode for editing BNF grammars. -*- lexical-binding:
t; -*-
;; Copyright (C) 2019 Serghei Iakovlev
- [elpa] externals/bnf-mode a4ca649 74/74: Remove wrongly used (and documented) syntax-propertize-function call, (continued)
- [elpa] externals/bnf-mode a4ca649 74/74: Remove wrongly used (and documented) syntax-propertize-function call, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode a9d6cc3 60/74: Merge pull request #3 from sergeyklay/feature/build-pkg, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 13de9e1 06/74: Updated project description, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 387b4c3 46/74: Minor code cleanup, improved tests report, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode d5729af 71/74: Fixed dependencies in Cask file, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode b02bebd 70/74: The byte-compiler reports warnings with "error", Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 00aac58 62/74: Change CI deploy credits, bump version, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 5a483ed 64/74: Introduce ALGOL 60 comments style, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 592c7d4 68/74: Minor improvements in change log, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 460c298 02/74: Added README file and LICENSE, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 1dda3ef 40/74: Provide ability to make plain text README,
Stefan Monnier <=
- [elpa] externals/bnf-mode 333b6a2 43/74: Require jka-compr at test stage to prevent recursive load, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 8caeb0b 67/74: Merge pull request #4 from sergeyklay/ortodox-comment-style, Stefan Monnier, 2019/05/09