Skip to content

Commit

Permalink
Set version to 0.25.1
Browse files Browse the repository at this point in the history
  • Loading branch information
eikek committed Jul 29, 2021
1 parent edd2881 commit fe06cc1
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/joexapi/src/main/resources/joex-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.0

info:
title: Docspell JOEX
version: 0.26.0-SNAPSHOT
version: 0.25.1
description: |
This is the remote API to the job executor component of Docspell.
Docspell is a free document management system focused on small
Expand Down
2 changes: 1 addition & 1 deletion modules/restapi/src/main/resources/docspell-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.0

info:
title: Docspell
version: 0.26.0-SNAPSHOT
version: 0.25.1
description: |
This is the remote API to Docspell. Docspell is a free document
management system focused on small groups or families.
Expand Down
29 changes: 29 additions & 0 deletions project/change-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env bash

set -e

cd "$(dirname $0)/.."

edit_version() {
file="$1"
old="$2"
new="$3"

sed -i "s/$old/$new/g" $file
}

current_version() {
cat "version.sbt" | head -n1 | cut -d'=' -f2 | xargs
}

curr="$(current_version)"

if [ -z "$1" ]; then
echo "No new version given!"
exit 1
fi

edit_version "version.sbt" "$curr" "$1"
edit_version "modules/restapi/src/main/resources/docspell-openapi.yml" "$curr" "$1"
edit_version "modules/joexapi/src/main/resources/joex-openapi.yml" "$curr" "$1"
edit_version "website/site/config.toml" "$curr" "$1"
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ThisBuild / version := "0.26.0-SNAPSHOT"
ThisBuild / version := "0.25.1"
2 changes: 1 addition & 1 deletion website/site/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ skip_anchor_prefixes = [

[extra]
# Put all your custom variables here
version = "0.26.0-SNAPSHOT"
version = "0.25.1"

0 comments on commit fe06cc1

Please sign in to comment.