Commit 93dcf09f authored by Alexandre Delanoë's avatar Alexandre Delanoë

[CLEAN] version script in main repo

parent 3ec95b0a
#!/bin/bash
# Prompt
TMPFILE="xxxx"
git tag
echo "Which version ?"
read VERSION
echo "## Version ${VERSION}" > $TMPFILE
cat CHANGELOG.md >> $TMPFILE
mv $TMPFILE CHANGELOG.md
vim CHANGELOG.md < /dev/tty
#################################################################
# Haskell
#################################################################
YAML="package.yaml"
CABL="gargantext.cabal"
sed -i "s/version:.*/version: \'$VERSION\'/" $YAML
sed -i "s/^version:.*/version: $VERSION/" $CABL
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