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

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

[elpa] externals/bnf-mode 30dcca7cd0 4/5: Change way to get version to s


From: ELPA Syncer
Subject: [elpa] externals/bnf-mode 30dcca7cd0 4/5: Change way to get version to support both BSD and GNU environments
Date: Sun, 15 Sep 2024 09:57:35 -0400 (EDT)

branch: externals/bnf-mode
commit 30dcca7cd00a6ba5d75cae5a7bd8cc990349d8fb
Author: Serghei Iakovlev <egrep@protonmail.ch>
Commit: Serghei Iakovlev <git@serghei.pl>

    Change way to get version to support both BSD and GNU environments
---
 default.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/default.mk b/default.mk
index 136f8e726b..09588d49c4 100644
--- a/default.mk
+++ b/default.mk
@@ -24,7 +24,7 @@ EMACS  ?= emacs
 CASK   ?= cask
 PANDOC ?= pandoc
 TAR    ?= tar
-SED    ?= sed
+AWK    ?= awk
 
 INSTALL_INFO ?= $(shell command -v ginstall-info || printf install-info)
 MAKEINFO     ?= makeinfo
@@ -48,11 +48,11 @@ else
 RUNEMACS = $(CASK) exec $(EMACSBATCH)
 endif
 
-VERSION="$(shell $(SED) -nre '/^;; Version:/ { s/^;; Version:[ \t]+//; p }' 
bnf-mode.el)"
-
 PACKAGE = bnf-mode
 ARCHIVE_NAME = $(PACKAGE)-$(VERSION)
 
+VERSION="$(shell $(AWK) '/^;; Version:/ { sub(/^;; Version:[ \t]+/, ""); print 
$$0 }' $(PACKAGE).el)"
+
 # File lists
 AUTOLOADS = bnf-mode-autoloads.el
 SRCS = bnf-mode.el



reply via email to

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