blob: ec1df70002c394d838a92271438dedfdf006e011 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
Starting with version 3.8, grep no longer quietly ignores backslashes
preceding a white-space character.
--- a/src/Makefile
+++ b/src/Makefile
@@ -88,16 +88,16 @@
EXE =
WGET = wget --no-check-certificate --quiet -O
PLUGINDIR = $(shell gimptool-2.0 --gimpplugindir)/plug-ins
-VERSION = $(shell grep 'gmic_version\ ' gmic.h | tail -c4 | head -c3)
-VERSION1 = $(shell grep 'gmic_version\ ' gmic.h | tail -c4 | head -c1)
-VERSION2 = $(shell grep 'gmic_version\ ' gmic.h | tail -c3 | head -c1)
-VERSION3 = $(shell grep 'gmic_version\ ' gmic.h | tail -c2 | head -c1)
+VERSION = $(shell grep 'gmic_version ' gmic.h | tail -c4 | head -c3)
+VERSION1 = $(shell grep 'gmic_version ' gmic.h | tail -c4 | head -c1)
+VERSION2 = $(shell grep 'gmic_version ' gmic.h | tail -c3 | head -c1)
+VERSION3 = $(shell grep 'gmic_version ' gmic.h | tail -c2 | head -c1)
SVERSION=$(VERSION1).$(VERSION2).$(VERSION3)
SRC_PATH=$(shell pwd)
# Check that versions of files 'CImg.h' and 'gmic.h' match.
ifneq (,$(wildcard CImg.h))
-CIMG_VERSION = $(shell grep 'cimg_version\ ' CImg.h | tail -c4 | head -c3)
+CIMG_VERSION = $(shell grep 'cimg_version ' CImg.h | tail -c4 | head -c3)
else
CIMG_VERSION = $(VERSION)
endif
|