Skip to content

Commit

Permalink
fix: match version on control file
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-chavez committed Dec 21, 2023
1 parent 8141269 commit aeead32
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
EXTENSION = plmustache
EXTVERSION = 0.1

DATA = $(wildcard sql/*--*.sql)

Expand All @@ -15,4 +16,13 @@ SHLIB_LINK = -lmustach
PG_CFLAGS = -std=c99 -Wno-declaration-after-statement -Wall -Werror -Wshadow

PGXS := $(shell $(PG_CONFIG) --pgxs)

all: sql/$(EXTENSION)--$(EXTVERSION).sql $(EXTENSION).control

sql/$(EXTENSION)--$(EXTVERSION).sql: sql/$(EXTENSION).sql
cp $< $@

$(EXTENSION).control:
sed "s/@EXTVERSION@/$(EXTVERSION)/g" $(EXTENSION).control.in > $(EXTENSION).control

include $(PGXS)
2 changes: 0 additions & 2 deletions plmustache.control

This file was deleted.

2 changes: 2 additions & 0 deletions plmustache.control.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
default_version = '@EXTVERSION@'
relocatable = false
File renamed without changes.

0 comments on commit aeead32

Please sign in to comment.