Skip to content

Commit 15da35e

Browse files
committed
configured files for pointcloud_postgis
1 parent 62acf84 commit 15da35e

File tree

8 files changed

+36
-16
lines changed

8 files changed

+36
-16
lines changed

pgsql/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set ( PC_HEADERS
1010
pc_pgsql.h
1111
)
1212

13-
set ( PC_INSTALL_EXENSIONS
13+
set ( PC_INSTALL_EXTENSIONS
1414
"${PROJECT_BINARY_DIR}/pgsql/pointcloud--${POINTCLOUD_VERSION}.sql"
1515
"${PROJECT_BINARY_DIR}/pgsql/pointcloud.control"
1616
)
@@ -64,7 +64,7 @@ install (
6464
)
6565

6666
install (
67-
FILES ${PC_INSTALL_EXENSIONS}
67+
FILES ${PC_INSTALL_EXTENSIONS}
6868
DESTINATION "${PGSQL_SHAREDIR}/extension"
6969
)
7070

pgsql/META.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"provides": {
1010
"pointcloud": {
1111
"abstract": "LIDAR point and patch types and functions",
12-
"version": "1.0.0",
12+
"version": "1.1.0",
1313
"file": "",
1414
"docfile": ""
1515
}
@@ -32,7 +32,7 @@
3232
}
3333
},
3434
"meta-spec": {
35-
"version": "1.0.0",
35+
"version": "1.1.0",
3636
"url": "http://pgxn.org/meta/spec.txt"
3737
},
3838
"tags": [

pgsql/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ $(EXTENSION)--%--$(EXTVERSION).sql: $(EXTENSION)--$(EXTVERSION).sql ../util/proc
5656
cat $< | ../util/proc_upgrade.pl > $@
5757

5858
$(EXTENSION)--%--$(EXTVERSION)next.sql: $(EXTENSION)--$(EXTVERSION)next--$(EXTVERSION).sql
59-
ln -f $< $@
59+
cp $< $@

pgsql_postgis/CMakeLists.txt

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11

2-
set ( PCPG_INSTALL_EXENSIONS
3-
pointcloud_postgis--1.0.sql
4-
pointcloud_postgis.control
2+
configure_file(
3+
pointcloud_postgis.sql.in
4+
"${PROJECT_BINARY_DIR}/pgsql/pointcloud_postgis--${POINTCLOUD_VERSION}.sql"
55
)
6-
6+
7+
configure_file(
8+
pointcloud_postgis.control.in
9+
"${PROJECT_BINARY_DIR}/pgsql/pointcloud_postgis.control"
10+
)
11+
12+
set ( PCPG_INSTALL_EXTENSIONS
13+
"${PROJECT_BINARY_DIR}/pgsql/pointcloud_postgis--${POINTCLOUD_VERSION}.sql"
14+
"${PROJECT_BINARY_DIR}/pgsql/pointcloud_postgis.control"
15+
)
16+
717
install (
8-
FILES ${PCPG_INSTALL_EXENSIONS}
18+
FILES ${PCPG_INSTALL_EXTENSIONS}
919
DESTINATION "${PGSQL_SHAREDIR}/extension"
1020
)
1121

pgsql_postgis/META.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "pointcloud_postgis",
33
"abstract": "PostGIS integration functions for Pointcloud",
44
"description": "Provides GIS overlay and vector/raster hooks for point clou data.",
5-
"version": "1.0.0",
5+
"version": "1.1.0",
66
"release_status": "unstable",
77
"maintainer": "Paul Ramsey",
88
"license": "bsd",
@@ -18,7 +18,7 @@
1818
"runtime": {
1919
"requires": {
2020
"postgis": "2.0.0",
21-
"pointcloud": "1.0.0"
21+
"pointcloud": "1.1.0"
2222
}
2323
}
2424
},
@@ -34,7 +34,7 @@
3434
}
3535
},
3636
"meta-spec": {
37-
"version": "1.0.0",
37+
"version": "1.1.0",
3838
"url": "http://pgxn.org/meta/spec.txt"
3939
},
4040
"tags": [

pgsql_postgis/Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ include ../config.mk
44

55
#MODULE_big = pointcloud_postgis
66
#OBJS =
7+
SED = sed
78
EXTENSION = pointcloud_postgis
8-
DATA = $(EXTENSION)--1.0.sql
9+
EXTVERSION=$(shell cat ../Version.config)
10+
EXTVERSION_MAJOR=$(shell cut -d. -f1,2 ../Version.config)
11+
DATA = $(EXTENSION)--$(EXTVERSION).sql
912

1013
#REGRESS = pointcloud
1114

@@ -15,3 +18,10 @@ DATA = $(EXTENSION)--1.0.sql
1518

1619
# We are going to use PGXS for sure
1720
include $(PGXS)
21+
22+
$(EXTENSION).control: $(EXTENSION).control.in Makefile
23+
$(SED) -e 's/@POINTCLOUD_VERSION@/$(EXTVERSION)/' \
24+
-e 's/@POINTCLOUD_VERSION_MAJOR@/$(EXTVERSION_MAJOR)/' $< > $@
25+
26+
$(EXTENSION)--$(EXTVERSION).sql: $(EXTENSION).sql.in Makefile
27+
$(SED) -e 's/@POINTCLOUD_VERSION@/$(EXTVERSION)/' $< > $@
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# pointcloud postgis integration extension
22
comment = 'integration for pointcloud LIDAR data and PostGIS geometry data'
3-
default_version = '1.1.0'
4-
module_pathname = '$libdir/pointcloud-1.1'
3+
default_version = '@POINTCLOUD_VERSION@'
4+
module_pathname = '$libdir/pointcloud-@POINTCLOUD_VERSION_MAJOR@'
55
relocatable = true
66
superuser = false
77
requires = 'postgis, pointcloud'

0 commit comments

Comments
 (0)