]> Git — Sourcephile - gargantext.git/blob - version
[Auth] add user_id to auth response
[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 sed -i "s/version:.*/version: \'$VERSION\'/" $YAML
19 git add -u
20 git commit -m "[VERSION] +1 to ${VERSION}"
21 git tag $VERSION
22
23 #################################################################
24 # Purescript
25 #################################################################
26 JSON="purescript-gargantext/package.json"
27 sed -i "s/\"version\": \".*\"/\"version\": \"${VERSION}\"/" $JSON
28 cd purescript-gargantext
29 git add -u
30 git commit -m "[VERSION] +1 to ${VERSION}"
31 git tag $VERSION
32 cd ..
33