Commit 0445a8f9 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[DEVOPS] script for versionning

parent db9a57db
#!/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 ..
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment