Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9e70afe

Browse filesBrowse files
author
Ekaterina Sokolova
committed
Tidying up update scripts.
1) remove perl scripts for generating sql files, 2) revert saving of old versions of init files, 3) clean Makefile
1 parent 8ca0f71 commit 9e70afe
Copy full SHA for 9e70afe

7 files changed

+7
-4167
lines changed

‎Makefile

Copy file name to clipboardExpand all lines: Makefile
+7-18Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,10 @@ OBJS = src/rumsort.o src/rum_ts_utils.o src/rumtsquery.o \
1111
src/rumscan.o src/rumutil.o src/rumvacuum.o src/rumvalidate.o \
1212
src/btree_rum.o src/rum_arr_utils.o $(WIN32RES)
1313

14-
DATA_first = rum--1.0.sql
1514
DATA_updates = rum--1.0--1.1.sql rum--1.1--1.2.sql \
1615
rum--1.2--1.3.sql
1716

18-
DATA = $(DATA_first) rum--$(EXTVERSION).sql $(DATA_updates)
19-
20-
# Do not use DATA_built. It removes built files if clean target was used
21-
SQL_built = rum--$(EXTVERSION).sql $(DATA_updates)
17+
DATA_built = $(EXTENSION)--$(EXTVERSION).sql
2218

2319
INCLUDES = rum.h rumsort.h
2420
RELATIVE_INCLUDES = $(addprefix src/, $(INCLUDES))
@@ -28,8 +24,8 @@ LDFLAGS_SL += $(filter -lm, $(LIBS))
2824
REGRESS = security rum rum_validate rum_hash ruminv timestamp orderby orderby_hash \
2925
altorder altorder_hash limits \
3026
int2 int4 int8 float4 float8 money oid \
31-
time timetz date interval \
32-
macaddr inet cidr text varchar char bytea bit varbit \
27+
time timetz date interval \
28+
macaddr inet cidr text varchar char bytea bit varbit \
3329
numeric rum_weight expr
3430

3531
TAP_TESTS = 1
@@ -47,6 +43,9 @@ include $(top_builddir)/src/Makefile.global
4743
include $(top_srcdir)/contrib/contrib-global.mk
4844
endif
4945

46+
$(EXTENSION)--$(EXTVERSION).sql: rum_init.sql
47+
cat $^ > $@
48+
5049
ifeq ($(MAJORVERSION), 9.6)
5150
# arrays are not supported on 9.6
5251
else
@@ -61,16 +60,6 @@ wal-check: temp-install
6160
check: wal-check
6261
endif
6362

64-
all: $(SQL_built)
65-
66-
#9.6 requires 1.3 file but 10.0 could live with update files
67-
rum--$(EXTVERSION).sql: $(DATA_first) $(DATA_updates)
68-
cat $(DATA_first) $(DATA_updates) > rum--$(EXTVERSION).sql
69-
70-
# rule for updates, e.g. rum--1.0--1.1.sql
71-
rum--%.sql: gen_rum_sql--%.pl
72-
perl $< > $@
73-
7463
install: installincludes
7564

7665
installincludes:
@@ -92,5 +81,5 @@ submake-rum:
9281

9382
isolationcheck: | submake-isolation submake-rum temp-install
9483
$(pg_isolation_regress_check) \
95-
--temp-config $(top_srcdir)/contrib/rum/logical.conf \
84+
--temp-config $(top_srcdir)/contrib/rum/logical.conf \
9685
$(ISOLATIONCHECKS)

‎gen_rum_sql--1.0--1.1.pl

Copy file name to clipboardExpand all lines: gen_rum_sql--1.0--1.1.pl
-335Lines changed: 0 additions & 335 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.