You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by al...@apache.org on 2019/10/10 18:05:26 UTC
[incubator-datasketches-postgresql] branch master updated: use core
lib ver 1.0.0-incubating
This is an automated email from the ASF dual-hosted git repository.
alsay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-postgresql.git
The following commit(s) were added to refs/heads/master by this push:
new f930471 use core lib ver 1.0.0-incubating
f930471 is described below
commit f930471e5afa509c0327f95ae2fc3f87a41219a8
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Thu Oct 10 11:05:10 2019 -0700
use core lib ver 1.0.0-incubating
---
package.sh | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/package.sh b/package.sh
index b9602a4..99c38a8 100755
--- a/package.sh
+++ b/package.sh
@@ -1,23 +1,31 @@
-#!/bin/bash
+#!/bin/bash -e
VER=$1
-
if [ -z $1 ]; then
- echo version must be specified: x.y.z
+ echo target PGXN package version must be specified: x.y.z
exit;
fi
+TAG=$2
+if [ -z $2 ]; then
+ echo datasketches-postgresql git tag must be specified
+ exit;
+fi
+
+# version of datasketches-cpp core library to include
+CORETAG=1.0.0-incubating
+
DST=datasketches-$VER
PGARCH=postgresql-$VER.zip
-COREARCH=core-$VER.zip
+COREARCH=core-$CORETAG.zip
rm -rf $DST
-rm $DST.zip
+rm -f $DST.zip
-git archive --format zip --prefix=$DST/ --output $PGARCH master
+git archive --format zip --prefix=$DST/ --output $PGARCH $TAG
cd ../datasketches-cpp
-git archive --format zip --output ../datasketches-postgresql/$COREARCH master
+git archive --format zip --output ../datasketches-postgresql/$COREARCH $CORETAG
cd ../datasketches-postgresql
unzip $PGARCH
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org