From 689447dfd89315d03dcda19f9df9ab4514d62a96 Mon Sep 17 00:00:00 2001
From: pablovaldes
Date: Fri, 11 Nov 2016 23:31:41 +0100
Subject: [PATCH 1/2] Update Makefile
suggestion to change old legacy backticks by $(), more readable
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 1b9348a..f85228d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
all:
tag:
- test -z "`git status -s quicklisp.lisp`"
- git tag version-`grep 'defvar qlqs-info:.version.' quicklisp.lisp | cut -d\" -f 2`
+ test -z "$(git status -s quicklisp.lisp)"
+ git tag version-$(grep 'defvar qlqs-info:.version.' quicklisp.lisp | cut -d\" -f 2)
From 85d7a3abfb5d1be0ce50cd6832c94ec8996620b8 Mon Sep 17 00:00:00 2001
From: pablovaldes
Date: Sat, 12 Nov 2016 01:58:48 +0100
Subject: [PATCH 2/2] Update Makefile
We avoid calling cut, and making grep eval all the lines of quicklisp.lisp (it stop after the first lines). We cut also a few bytes of weight in the makefile.
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index f85228d..548ee65 100644
--- a/Makefile
+++ b/Makefile
@@ -2,4 +2,4 @@ all:
tag:
test -z "$(git status -s quicklisp.lisp)"
- git tag version-$(grep 'defvar qlqs-info:.version.' quicklisp.lisp | cut -d\" -f 2)
+ git tag version-$(grep -Eohm1 2[0-9-]{9} quicklisp.lisp)