From c9d9a1269c9880c18b9e2b470516e9d9c4a474cd Mon Sep 17 00:00:00 2001 From: Kam Date: Sun, 21 Jun 2026 21:05:00 +1000 Subject: [PATCH] fix: keep Doxyfile version in release sync --- Doxyfile | 2 +- scripts/release-check.sh | 2 ++ scripts/release-sync.sh | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Doxyfile b/Doxyfile index d504029d..cfec9f58 100644 --- a/Doxyfile +++ b/Doxyfile @@ -38,7 +38,7 @@ PROJECT_NAME = "icey" # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 2.4.10 +PROJECT_NUMBER = 2.5.0 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a diff --git a/scripts/release-check.sh b/scripts/release-check.sh index 41b41cdc..73e7e534 100755 --- a/scripts/release-check.sh +++ b/scripts/release-check.sh @@ -37,6 +37,8 @@ docs=( current_version=$(tr -d '[:space:]' < VERSION) [ "$current_version" = "$version" ] || fail "VERSION contains $current_version, expected $version" +grep -Eq '^PROJECT_NUMBER[[:space:]]*=[[:space:]]*'"$version"'$' Doxyfile \ + || fail "Doxyfile PROJECT_NUMBER is not synced to $version" grep -Eq '^ version = "'"$version"'"$' packaging/conan/conanfile.py \ || fail "packaging/conan/conanfile.py is not synced to $version" diff --git a/scripts/release-sync.sh b/scripts/release-sync.sh index 3b2d62fe..7e1a2041 100755 --- a/scripts/release-sync.sh +++ b/scripts/release-sync.sh @@ -31,6 +31,7 @@ docs=( ) printf '%s\n' "$version" > VERSION +perl -0pi -e 's/^PROJECT_NUMBER[[:space:]]*=.*$/PROJECT_NUMBER = '"$version"'/m' Doxyfile perl -0pi -e 's/version = "\d+\.\d+\.\d+"/version = "'"$version"'"/' packaging/conan/conanfile.py cat > packaging/conan/conandata.yml <