]> Git — Sourcephile - gargantext.git/blob - version
Merge branch 'dev-social-list' into dev-merge
[gargantext.git] / version
1 #!/bin/bash
2
3 # Prompt
4 git tag
5 echo "Which version ?"
6 read VERSION
7 echo "Change to: ${VERSION}"
8
9 #################################################################
10 # Haskell
11 #################################################################
12 YAML="package.yaml"
13 sed -i "s/version:.*/version: \'$VERSION\'/" $YAML
14 git add -u
15 git commit -m "[VERSION] +1 to ${VERSION}"
16 git tag $VERSION
17
18 #################################################################
19 # Purescript
20 #################################################################
21 JSON="purescript-gargantext/package.json"
22 sed -i "s/\"version\": \".*\"/\"version\": \"${VERSION}\"/" $JSON
23 cd purescript-gargantext
24 git add -u
25 git commit -m "[VERSION] +1 to ${VERSION}"
26 git tag $VERSION
27 cd ..
28