Skip to content
Newer
Older
100755 15 lines (9 sloc) 351 Bytes
044e86e @bringert Added script for setting the version of all the packages.
bringert authored Jul 18, 2006
1 #!/bin/sh
2
3 NEW_VERSION=$1
4
5 if [ -z "$NEW_VERSION" ]; then
6 echo "Usage: set-version <version>"
7 exit 2
8 fi
9
10 echo "Setting version to: $NEW_VERSION"
11
12 find haskelldb.cabal driver-* -name '*.cabal' | xargs perl -i -pe "s/^Version:.*/Version: $NEW_VERSION/i"
83bb23d @bringert set-version now changes src/Database/HaskellDB/Version.hs
bringert authored Jul 18, 2006
13
14 perl -i -pe "s/^version\s*=.*/version = \"$NEW_VERSION\"/i" src/Database/HaskellDB/Version.hs
Something went wrong with that request. Please try again.