Generate cartodb.control with Makefile-driver version
Set version to 0.1dev
This commit is contained in:
parent
0051ff33b3
commit
b8e15dba83
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
cartodb--*.sql
|
cartodb--*.sql
|
||||||
|
cartodb.control
|
||||||
results/
|
results/
|
||||||
regression.*
|
regression.*
|
||||||
expected/test
|
expected/test
|
||||||
|
16
Makefile
16
Makefile
@ -1,14 +1,17 @@
|
|||||||
# cartodb/Makefile
|
# cartodb/Makefile
|
||||||
|
|
||||||
EXTENSION = cartodb
|
EXTENSION = cartodb
|
||||||
EXTVERSION = 0.1
|
EXTVERSION = 0.1dev
|
||||||
|
|
||||||
CDBSCRIPTS = \
|
CDBSCRIPTS = \
|
||||||
scripts-enabled/*.sql \
|
scripts-enabled/*.sql \
|
||||||
$(END)
|
$(END)
|
||||||
|
|
||||||
DATA_built = $(EXTENSION)--$(EXTVERSION).sql \
|
DATA_built = \
|
||||||
$(EXTENSION)--unpackaged--$(EXTVERSION).sql
|
$(EXTENSION)--$(EXTVERSION).sql \
|
||||||
|
$(EXTENSION)--unpackaged--$(EXTVERSION).sql \
|
||||||
|
$(EXTENSION).control
|
||||||
|
|
||||||
DOCS = README.md
|
DOCS = README.md
|
||||||
REGRESS_NEW = test_ddl_triggers
|
REGRESS_NEW = test_ddl_triggers
|
||||||
REGRESS_OLD = $(wildcard test/*.sql)
|
REGRESS_OLD = $(wildcard test/*.sql)
|
||||||
@ -27,8 +30,11 @@ $(EXTENSION)--$(EXTVERSION).sql: $(CDBSCRIPTS) cartodb_hooks.sql Makefile
|
|||||||
echo "GRANT USAGE ON SCHEMA cartodb TO public;" >> $@
|
echo "GRANT USAGE ON SCHEMA cartodb TO public;" >> $@
|
||||||
cat cartodb_hooks.sql >> $@
|
cat cartodb_hooks.sql >> $@
|
||||||
|
|
||||||
$(EXTENSION)--unpackaged--0.1.sql: $(EXTENSION)--$(EXTVERSION).sql util/create_from_unpackaged.sh Makefile
|
$(EXTENSION)--unpackaged--$(EXTVERSION).sql: $(EXTENSION)--$(EXTVERSION).sql util/create_from_unpackaged.sh Makefile
|
||||||
./util/create_from_unpackaged.sh cartodb--unpackaged--0.1.sql
|
./util/create_from_unpackaged.sh $(EXTVERSION)
|
||||||
|
|
||||||
|
$(EXTENSION).control: $(EXTENSION).control.in
|
||||||
|
sed -e 's/@@VERSION@@/$(EXTVERSION)/' $< > $@
|
||||||
|
|
||||||
legacy_regress: $(REGRESS_OLD) Makefile
|
legacy_regress: $(REGRESS_OLD) Makefile
|
||||||
mkdir -p sql/test/
|
mkdir -p sql/test/
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
default_version = '0.1'
|
default_version = '@@VERSION@@'
|
||||||
comment = 'Turn a database into a cartodb user database.'
|
comment = 'Turn a database into a cartodb user database.'
|
||||||
superuser = true
|
superuser = true
|
||||||
relocatable = false
|
relocatable = false
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
input=cartodb--0.1.sql
|
ver=$1
|
||||||
output=cartodb--unpackaged--0.1.sql
|
input=cartodb--${ver}.sql
|
||||||
|
output=cartodb--unpackaged--${ver}.sql
|
||||||
|
|
||||||
cat ${input} > ${output}
|
cat ${input} > ${output}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user