File tree Expand file tree Collapse file tree 8 files changed +36
-16
lines changed
Expand file tree Collapse file tree 8 files changed +36
-16
lines changed Original file line number Diff line number Diff 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
6666install (
67- FILES ${PC_INSTALL_EXENSIONS}
67+ FILES ${PC_INSTALL_EXTENSIONS}
6868 DESTINATION "${PGSQL_SHAREDIR} /extension"
6969 )
7070
Original file line number Diff line number Diff line change 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 }
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" : [
Original file line number Diff line number Diff 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 $< $@
Original file line number Diff line number Diff line change 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+
717install (
8- FILES ${PCPG_INSTALL_EXENSIONS}
18+ FILES ${PCPG_INSTALL_EXTENSIONS}
919 DESTINATION "${PGSQL_SHAREDIR} /extension"
1020 )
1121
Original file line number Diff line number Diff line change 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" ,
1818 "runtime" : {
1919 "requires" : {
2020 "postgis" : " 2.0.0" ,
21- "pointcloud" : " 1.0 .0"
21+ "pointcloud" : " 1.1 .0"
2222 }
2323 }
2424 },
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" : [
Original file line number Diff line number Diff line change @@ -4,8 +4,11 @@ include ../config.mk
44
55# MODULE_big = pointcloud_postgis
66# OBJS =
7+ SED = sed
78EXTENSION = 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
1720include $(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)/' $< > $@
Original file line number Diff line number Diff line change 11# pointcloud postgis integration extension
22comment = '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@ '
55relocatable = true
66superuser = false
77requires = 'postgis, pointcloud'
File renamed without changes.
You can’t perform that action at this time.
0 commit comments