Skip to content

Commit 9d3f5be

Browse files
committed
refactor: get version from Makefile for .control
1 parent eccc9d1 commit 9d3f5be

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ all: sql/$(EXTENSION)--$(EXTVERSION).sql
1515
sql/$(EXTENSION)--$(EXTVERSION).sql: sql/$(EXTENSION).sql
1616
cp $< $@
1717

18+
pg_net.control:
19+
sed "s/@PG_NET_VERSION@/$(EXTVERSION)/g" pg_net.control.in > pg_net.control
20+
1821
EXTRA_CLEAN = sql/$(EXTENSION)--$(EXTVERSION).sql
1922

2023
PG_CONFIG = pg_config
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
comment = 'Async HTTP'
2-
default_version = '0.7.1'
2+
default_version = '@PG_NET_VERSION@'
33
relocatable = false

0 commit comments

Comments
 (0)