Skip to content

Commit

Permalink
script to prepare PGXN bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSaydakov committed Jan 31, 2019
1 parent 3b5c483 commit ae43dfc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

VER=$1

DST=datasketches-$VER

PGARCH=postgres-$VER.zip
COREARCH=core-$VER.zip

rm -rf $DST
rm $DST.zip

git archive --format zip --prefix=$DST/ --output $PGARCH master
cd ../sketches-core-cpp
git archive --format zip --output ../sketches-postgres/$COREARCH master
cd ../sketches-postgres

unzip $PGARCH
COREDIR=$DST/sketches-core-cpp
mkdir $COREDIR
unzip $COREARCH -d $COREDIR

zip -r $DST.zip $DST

0 comments on commit ae43dfc

Please sign in to comment.