Commits

intgr committed 1923862

Update META.json, version 0.0.2 testing. Add tarball script

  • Participants
  • Parent commits 99ce537

Comments (0)

Files changed (2)

     "name": "financial",
     "abstract": "Financial aggregate functions",
     "description": "Functions and aggregates for financial calculations",
-    "version": "0.0.1",
-    "release_status": "unstable",
+    "version": "0.0.2",
+    "release_status": "testing",
 
     "maintainer": "Marti Raudsepp <marti@juffo.org>",
     "generated_by": "Marti Raudsepp <marti@juffo.org>",
     },
     "tags": [
         "financial", "finance", "rate of return", "xirr", "aggregate",
-        "functions"
+        "functions", "excel", "investment"
     ],
     "resources": {
         "bugtracker": {
+#!/bin/sh
+set -e
+
+if [[ -z "$1" ]]; then
+  TAG="$(git describe)"
+  VER="${TAG#v}"
+else
+  VER="$1"
+  TAG="v$VER"
+fi
+
+NAME="pg_financial-$VER"
+echo "Creating `realpath ../$NAME.tar.gz`"
+git archive "$TAG" --prefix "$NAME/" -o "../$NAME.tar.gz"
+echo "Creating `realpath ../$NAME.zip`"
+git archive "$TAG" --prefix "$NAME/" -o "../$NAME.zip"