Skip to content

Commit

Permalink
Updated hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinreact committed Jul 3, 2017
1 parent 0c8e51a commit a4ce4fb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Synthesis Format Conversion Tool
# (Version 1.0.0.24)
# (Version 1.0.0.25)

A tool for reading, manipulating and transforming synthesis
specifications in TLSF [0].
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Synthesis Format Conversion Tool<br/>(Version 1.0.0.24)
# Synthesis Format Conversion Tool<br/>(Version 1.0.0.25)

A tool for reading, manipulating and transforming synthesis
specifications in [TLSF](https://arxiv.org/abs/1604.02284).
Expand Down
20 changes: 5 additions & 15 deletions misc/git-post-commit
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,25 @@
if [ -a .commit ]
then
rm .commit

# Update version number
curver=`cat syfco.cabal | grep '^version' | sed 's/^version:[^.]*.[^.]*.[^.]*.\([0-9]*\).*/\1/'`
newver=`expr $curver + 1`

sed -i "s/\(^version:[^.]*.[^.]*.[^.]*.\)[0-9]*/\1$newver/" syfco.cabal

# build
cabal configure

if ! [[ $? = 0 ]]
then
# Reset version
sed -i "s/\(^version:[^.]*.[^.]*.[^.]*.\)[0-9]*/\1$oldver/" syfco.cabal
exit 1
fi
make

# build
cabal build

if ! [[ $? = 0 ]]
then
# Reset version
sed -i "s/\(^version:[^.]*.[^.]*.[^.]*.\)[0-9]*/\1$oldver/" syfco.cabal
exit 1
fi

dist/build/syfco/syfco --readme > README
dist/build/syfco/syfco --readme.md > README.md
./syfco --readme > README
./syfco --readme.md > README.md

git commit -a --amend -C HEAD --no-verify
fi
Expand Down
2 changes: 1 addition & 1 deletion syfco.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: syfco
version: 1.0.0.24
version: 1.0.0.25
synopsis: Synthesis Format Conversion Tool / Library
description: Library and tool for reading, manipulating and transforming synthesis specifications.
license: MIT
Expand Down

0 comments on commit a4ce4fb

Please sign in to comment.