From 60ba48d308735b3dd6b83003bf9ba50bf07bab06 Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Tue, 31 Mar 2026 19:31:00 -0400 Subject: [PATCH] Update to 2.3.1: * Fix: Compatibility with sqlite3 version >= 3.52.0 --- Changelog | 3 +++ NOTICE | 2 +- bin/BBlog | 6 +++--- engines/sqlite.sh | 3 +-- man/man1/BBlog.1 | 6 +++--- man/man7/BBlog-sqlite.7 | 4 ++-- 6 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Changelog b/Changelog index b381de5..374a250 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,6 @@ +2.3.1: + * Fix: Compatibility with sqlite3 version >= 3.52.0 + 2.3: * New: access 'url' entry in sqlite databases. diff --git a/NOTICE b/NOTICE index 11dda17..c3b8d8c 100644 --- a/NOTICE +++ b/NOTICE @@ -1,2 +1,2 @@ BBlog -Copyright Ian Jauslin 2015-2023 +Copyright Ian Jauslin 2015-2026 diff --git a/bin/BBlog b/bin/BBlog index ae22579..e7282b8 100755 --- a/bin/BBlog +++ b/bin/BBlog @@ -1,6 +1,6 @@ #!/bin/bash -## Copyright Ian Jauslin 2015-2023 +## Copyright Ian Jauslin 2015-2026 ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. @@ -15,10 +15,10 @@ ## limitations under the License. # directory containing the engine files -enginedir=/usr/share/BBlog/engines +enginedir=/home/ian/Programs/BBlog2/src/engines # version -version=2.3 +version=2.3.1 function print_config { echo "engine: $engine" diff --git a/engines/sqlite.sh b/engines/sqlite.sh index 3f06c0f..ba8e0ce 100644 --- a/engines/sqlite.sh +++ b/engines/sqlite.sh @@ -7,7 +7,6 @@ function SQL_addquotes { # add quotes and escape string if [ -n "$line" ]; then line=$(escape_string "$line") - line="${line/%=/= }" line="${line/ = /=\"}" line="${line/%/\"}" fi @@ -63,7 +62,7 @@ function generate_SQL_alpha { function fetch_BBlog_entries_alpha { SQL="$(generate_SQL_alpha)" SQL="${SQL% OR citeref=\'} ORDER BY prauth,year" - sqlite3 -line "$db" "$SQL" | SQL_addquotes + sqlite3 "$db" ".mode line --colsep ' = '" "$SQL" | SQL_addquotes # add an empty line echo "" } diff --git a/man/man1/BBlog.1 b/man/man1/BBlog.1 index c163d92..54e83f8 100644 --- a/man/man1/BBlog.1 +++ b/man/man1/BBlog.1 @@ -1,5 +1,5 @@ -.Dd $Mdocdate: July 26 2023 $ -.Dt BBLOG 2.3 +.Dd $Mdocdate: July 26 2026 $ +.Dt BBLOG 2.3.1 .Os .Sh NAME .Nm BBlog @@ -194,6 +194,6 @@ automatically adds a letter (from 'b' to 'z') at the end of non-unique tokens, i .Nm was written by Ian Jauslin. .Sh COPYRIGHT -copyright Ian Jauslin 2015-2023 +copyright Ian Jauslin 2015-2026 .Sh SEE ALSO .Sx BBlog-sqlite Ns (7) diff --git a/man/man7/BBlog-sqlite.7 b/man/man7/BBlog-sqlite.7 index 7c5331e..27bfcac 100644 --- a/man/man7/BBlog-sqlite.7 +++ b/man/man7/BBlog-sqlite.7 @@ -1,4 +1,4 @@ -.Dd $Mdocdate: July 26 2023 $ +.Dd $Mdocdate: July 26 2026 $ .Dt BBLOG-sqlite .Os .Sh DESCRIPTION @@ -34,7 +34,7 @@ link to paper .Sh AUTHORS The sqlite BBlog engine was written by Ian Jauslin. .Sh COPYRIGHT -copyright Ian Jauslin 2015-2023 +copyright Ian Jauslin 2015-2026 .Sh SEE ALSO .Sx BBlog Ns (1) , .Sx sqlite3 Ns (1)