Kaydet (Commit) 391193b6 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

pgsql-sdbc: ++version, auto-fill version in description.xml, long description

üst fc03666c
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<description xmlns="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dep="http://openoffice.org/extensions/description/2006"> <description xmlns="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dep="http://openoffice.org/extensions/description/2006">
<version value="0.8.0" /> <version value="@EXTENSION_VERSION@" />
<identifier value="postgresql-sdbc" /> <identifier value="postgresql-sdbc" />
<display-name> <display-name>
<name lang="en-US">PostgreSQL-SDBC Driver</name> <name lang="en-US">PostgreSQL-SDBC Driver</name>
...@@ -11,4 +11,7 @@ ...@@ -11,4 +11,7 @@
<publisher> <publisher>
<name xlink:href="http://www.mamane.lu/" lang="en">Lionel Elie Mamane</name> <name xlink:href="http://www.mamane.lu/" lang="en">Lionel Elie Mamane</name>
</publisher> </publisher>
<extension-description>
<src lang="en-US" xlink:href="description/description_en-US.txt"/>
</extension-description>
</description> </description>
A native PostgreSQL database driver for LibreOffice. It is faster, seamlessly integrated and there is no need to install and setup a JDBC or ODBC driver separately.
...@@ -80,8 +80,9 @@ NO_DEFAULT_STL=TRUE ...@@ -80,8 +80,9 @@ NO_DEFAULT_STL=TRUE
DLLPRE= DLLPRE=
PQ_SDBC_MAJOR=0 PQ_SDBC_MAJOR=0
PQ_SDBC_MINOR=7 PQ_SDBC_MINOR=8
PQ_SDBC_MICRO=7 PQ_SDBC_MICRO=0
PQ_SDBC_VERSION=$(PQ_SDBC_MAJOR).$(PQ_SDBC_MINOR).$(PQ_SDBC_MICRO)
.IF "$(SYSTEM_POSTGRESQL)" == "YES" .IF "$(SYSTEM_POSTGRESQL)" == "YES"
POSTGRESQL_MAJOR=`pg_config --version | awk '{ print $$2 }' | cut -d. -f1` POSTGRESQL_MAJOR=`pg_config --version | awk '{ print $$2 }' | cut -d. -f1`
POSTGRESQL_MINOR=`pg_config --version | awk '{ print $$2 }' | cut -d. -f2` POSTGRESQL_MINOR=`pg_config --version | awk '{ print $$2 }' | cut -d. -f2`
...@@ -176,7 +177,7 @@ SHL2VERSIONMAP=$(SOLARENV)$/src$/reg-component.map ...@@ -176,7 +177,7 @@ SHL2VERSIONMAP=$(SOLARENV)$/src$/reg-component.map
SLOFILES= $(LIB1OBJFILES) $(LIB2OBJFILES) SLOFILES= $(LIB1OBJFILES) $(LIB2OBJFILES)
DRIVERNAME=postgresql-sdbc-$(PQ_SDBC_MAJOR).$(PQ_SDBC_MINOR).$(PQ_SDBC_MICRO).oxt DRIVERNAME=postgresql-sdbc-$(PQ_SDBC_VERSION).oxt
ALLTAR : $(DLLDEST)$/$(DRIVERNAME) ALLTAR : $(DLLDEST)$/$(DRIVERNAME)
# --- Targets ------------------------------------------------------ # --- Targets ------------------------------------------------------
...@@ -194,6 +195,7 @@ $(DLLDEST)$/$(SHL1TARGET)$(INI_EXT): $(SHL1TARGET) ...@@ -194,6 +195,7 @@ $(DLLDEST)$/$(SHL1TARGET)$(INI_EXT): $(SHL1TARGET)
$(DLLDEST)$/$(DRIVERNAME): \ $(DLLDEST)$/$(DRIVERNAME): \
$(DLLDEST)$/META-INF$/manifest.xml \ $(DLLDEST)$/META-INF$/manifest.xml \
$(DLLDEST)$/description.xml \ $(DLLDEST)$/description.xml \
$(DLLDEST)$/description/description_en-US.txt \
$(DLLDEST)$/postgresql.xcu \ $(DLLDEST)$/postgresql.xcu \
$(DLLDEST)$/$(SHL1TARGET)$(DLLPOST) \ $(DLLDEST)$/$(SHL1TARGET)$(DLLPOST) \
$(DLLDEST)$/$(SHL2TARGET)$(DLLPOST) \ $(DLLDEST)$/$(SHL2TARGET)$(DLLPOST) \
...@@ -205,17 +207,22 @@ $(DLLDEST)$/$(DRIVERNAME): \ ...@@ -205,17 +207,22 @@ $(DLLDEST)$/$(DRIVERNAME): \
$(SHL2TARGET)$(DLLPOST) \ $(SHL2TARGET)$(DLLPOST) \
$(SHL1TARGET)$(INI_EXT) \ $(SHL1TARGET)$(INI_EXT) \
description.xml \ description.xml \
description/description_en-US.txt \
postgresql.xcu postgresql.xcu
$(DLLDEST)$/description/% : description/%
mkdir -p $(DLLDEST)$/description
+cp $? $@
$(DLLDEST)$/META-INF$/manifest.xml : manifest.xml $(DLLDEST)$/META-INF$/manifest.xml : manifest.xml
-mkdir -p $(DLLDEST)$/META-INF mkdir -p $(DLLDEST)$/META-INF
+cp $? $@ +cp $? $@
$(DLLDEST)$/description.xml : description.xml $(DLLDEST)$/description.xml : description.xml
+cp $? $@ +sed -s -e 's/@EXTENSION_VERSION@/$(PQ_SDBC_VERSION)/' < $? > $@
$(DLLDEST)$/postgresql.xcu : postgresql.xcu $(DLLDEST)$/postgresql.xcu : postgresql.xcu
-rm -f $@ rm -f $@
cat postgresql.xcu > $@ cat postgresql.xcu > $@
strip : strip :
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<value>org.openoffice.comp.connectivity.pq.Driver</value> <value>org.openoffice.comp.connectivity.pq.Driver</value>
</prop> </prop>
<prop oor:name="DriverTypeDisplayName" oor:type="xs:string"> <prop oor:name="DriverTypeDisplayName" oor:type="xs:string">
<value xml:lang="en-US">postgresql</value> <value xml:lang="en-US">PostgreSQL</value>
</prop> </prop>
<node oor:name="Properties"> <node oor:name="Properties">
</node> </node>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment