+1
-1
@@ -135,7 +135,7 @@ rec {
|
|||||||
|
|
||||||
# Scripts for publishing new releases.
|
# Scripts for publishing new releases.
|
||||||
release =
|
release =
|
||||||
pkgs.callPackage nix/tools/release { };
|
pkgs.callPackage nix/tools/release.nix { };
|
||||||
|
|
||||||
# Linting and styling tools.
|
# Linting and styling tools.
|
||||||
style =
|
style =
|
||||||
|
|||||||
@@ -29,22 +29,28 @@ let
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
major)
|
major)
|
||||||
new_version="$((major+1)).0.0"
|
new_version="$((major+1)).0.0"
|
||||||
|
new_docs_version="$((major+1)).0"
|
||||||
;;
|
;;
|
||||||
minor)
|
minor)
|
||||||
new_version="$major.$((minor+1)).0"
|
new_version="$major.$((minor+1)).0"
|
||||||
|
new_docs_version="$major.$((minor+1))"
|
||||||
;;
|
;;
|
||||||
patch)
|
patch)
|
||||||
new_version="$major.$minor.$((patch+1))"
|
new_version="$major.$minor.$((patch+1))"
|
||||||
|
new_docs_version="$major.$minor"
|
||||||
;;
|
;;
|
||||||
devel)
|
devel)
|
||||||
new_version="$major.$((minor+1))"
|
new_version="$major.$((minor+1))"
|
||||||
|
new_docs_version="devel"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echo "Updating postgrest.cabal ..."
|
echo "Updating postgrest.cabal ..."
|
||||||
sed -i -E "s/^(version:\s+).*$/\1$new_version/" postgrest.cabal > /dev/null
|
sed -i -E "s/^(version:\s+).*$/\1$new_version/" postgrest.cabal > /dev/null
|
||||||
|
echo "Updating docs/conf.py ..."
|
||||||
|
sed -i -E "s/^(version = ).*$/\1\"$new_docs_version\"/" docs/conf.py > /dev/null
|
||||||
|
|
||||||
git add postgrest.cabal > /dev/null
|
git add postgrest.cabal docs/conf.py > /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
today_date_for_changelog="$(date '+%Y-%m-%d')"
|
today_date_for_changelog="$(date '+%Y-%m-%d')"
|
||||||
Reference in New Issue
Block a user