diff --git a/.check_date.sh b/.check_date.sh new file mode 100755 index 0000000..831a6dd --- /dev/null +++ b/.check_date.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +grep $(date -u -I) mod.conf +exit $? diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 94c1c38..6d4489f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,6 +17,13 @@ repos: pass_filenames: true exclude: .pre-commit-config.yaml fail_fast: true + - id: date_version + name: date version + language: script + entry: .check_date.sh + files: mod.conf + always_run: true + fail_fast: true - id: stylua name: stylua language: system diff --git a/mod.conf b/mod.conf index ec9d2fa..47ddb28 100644 --- a/mod.conf +++ b/mod.conf @@ -5,6 +5,6 @@ website = https://content.minetest.net/packages/rheo/book_runner/ author = fluxionary license = LGPL-3.0-or-later media_license = CC-BY-SA-4.0 -version = 2023-05-12 +version = 2024-09-11 min_minetest_version = 5.7.0 depends = default, fmod, futil diff --git a/settingtypes.txt b/settingtypes.txt index 7f0d961..f581b89 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -1,2 +1,2 @@ # output will be truncated after this point, with a short message. -book_runner:max_book_length (maximum length of the book) int 100000 0 640000 +book_runner.max_book_length (maximum length of the book) int 100000 0 640000