Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (9 sloc) 351 Bytes
#!/bin/sh
NEW_VERSION=$1
if [ -z "$NEW_VERSION" ]; then
echo "Usage: set-version <version>"
exit 2
fi
echo "Setting version to: $NEW_VERSION"
find haskelldb.cabal driver-* -name '*.cabal' | xargs perl -i -pe "s/^Version:.*/Version: $NEW_VERSION/i"
perl -i -pe "s/^version\s*=.*/version = \"$NEW_VERSION\"/i" src/Database/HaskellDB/Version.hs