]> Git — Sourcephile - gargantext.git/blob - version
adaptative time scale with phylo 1click
[gargantext.git] / version
1 #!/bin/bash
2
3 # Prompt
4 TMPFILE="xxxx"
5
6 git tag
7 echo "Which version ?"
8 read VERSION
9 echo "## Version ${VERSION}" > $TMPFILE
10 cat CHANGELOG.md >> $TMPFILE
11 mv $TMPFILE CHANGELOG.md
12 vim CHANGELOG.md < /dev/tty
13
14 #################################################################
15 # Haskell
16 #################################################################
17 YAML="package.yaml"
18 CABL="gargantext.cabal"
19 sed -i "s/version:.*/version: \'$VERSION\'/" $YAML
20 sed -i "s/^version:.*/version: $VERSION/" $CABL
21 git add -u
22 git commit -m "[VERSION] +1 to ${VERSION}"
23 git tag $VERSION
24
25 #################################################################
26 # Purescript
27 #################################################################
28 JSON="purescript-gargantext/package.json"
29 sed -i "s/\"version\": \".*\"/\"version\": \"${VERSION}\"/" $JSON
30 cd purescript-gargantext
31 git add -u
32 git commit -m "[VERSION] +1 to ${VERSION}"
33 git tag $VERSION
34 cd ..
35