File: Replace-wildcard-list-with-static-list-of-files.patch

package info (click to toggle)
postgresql-q3c 1.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,892 kB
  • sloc: sql: 13,151; ansic: 3,741; python: 110; perl: 104; makefile: 89; sh: 3
file content (26 lines) | stat: -rw-r--r-- 883 bytes parent folder | download
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
From: Ole Streicher <olebole@debian.org>
Date: Mon, 7 Aug 2017 13:32:42 +0200
Subject: Replace "wildcard" list with static list of files

wildcard does not work here (?), and there is only one item anyway.
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 54fbec2..e800626 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,10 @@
 EXTENSION = q3c
-EXTVERSION := $(shell grep default_version $(EXTENSION).control | \
+EXTVERSION := $(shell grep default_version ../$(EXTENSION).control | \
 		 sed -e "s/default_version[[:space:]]*=[[:space:]]*'\([^']*\)'/\1/")
 DOCS = README.md
 OBJS = dump.o q3c.o q3c_poly.o q3cube.o
 MODULE_big = q3c
-DATA = $(wildcard scripts/*sql)
+DATA = scripts/q3c--$(EXTVERSION).sql
 PG_CONFIG = pg_config
 SHLIB_LINK += $(filter -lm, $(LIBS))
 EXTRA_CLEAN = dump.c prepare prepare.o gen_data.o \