version 738 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
#!/bin/bash

# Prompt
git tag
echo "Which version ?"
read VERSION
echo "Change to: ${VERSION}"

#################################################################
# Haskell
#################################################################
YAML="package.yaml"
sed -i "s/version:.*/version: \'$VERSION\'/" $YAML
git add -u 
git commit -m "[VERSION] +1 to ${VERSION}"
git tag $VERSION

#################################################################
# Purescript
#################################################################
JSON="purescript-gargantext/package.json"
sed -i "s/\"version\": \".*\"/\"version\": \"${VERSION}\"/" $JSON
cd purescript-gargantext
git add -u
git commit -m "[VERSION] +1 to ${VERSION}"
git tag $VERSION
cd ..