Compare commits
	
		
			4 Commits
		
	
	
		
			v2.1.4
			...
			c2f99c259d
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| c2f99c259d | |||
| c6e9cb3af4 | |||
| 70bba87946 | |||
| aacbf51475 | 
							
								
								
									
										20
									
								
								Changelog
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								Changelog
									
									
									
									
									
								
							@@ -1,3 +1,23 @@
 | 
			
		||||
2.3:
 | 
			
		||||
 | 
			
		||||
  * New: access 'url' entry in sqlite databases.
 | 
			
		||||
 | 
			
		||||
2.2.1:
 | 
			
		||||
 | 
			
		||||
  * Fix: Missing quotes in filter interpreter.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
2.2:
 | 
			
		||||
 | 
			
		||||
  * New: Allow for the value of other entries to be in the 'sed' command of a
 | 
			
		||||
	 filter. (May break existing configurations in cases where sed command
 | 
			
		||||
	 uses a '%'.)
 | 
			
		||||
 | 
			
		||||
2.1.5:
 | 
			
		||||
 | 
			
		||||
  * Fixed: Properly escape entries with a '%'
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
2.1.4:
 | 
			
		||||
 | 
			
		||||
  * New: Allow for comma separated list of references in aux_cmd.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
## Copyright Ian Jauslin 2015-2019
 | 
			
		||||
## Copyright Ian Jauslin 2015-2023
 | 
			
		||||
## 
 | 
			
		||||
## Licensed under the Apache License, Version 2.0 (the "License");
 | 
			
		||||
## you may not use this file except in compliance with the License.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								NOTICE
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								NOTICE
									
									
									
									
									
								
							@@ -1,2 +1,2 @@
 | 
			
		||||
BBlog
 | 
			
		||||
Copyright Ian Jauslin 2015-2019
 | 
			
		||||
Copyright Ian Jauslin 2015-2023
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										14
									
								
								bin/BBlog
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								bin/BBlog
									
									
									
									
									
								
							@@ -1,6 +1,6 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
## Copyright Ian Jauslin 2015-2019
 | 
			
		||||
## Copyright Ian Jauslin 2015-2023
 | 
			
		||||
## 
 | 
			
		||||
## Licensed under the Apache License, Version 2.0 (the "License");
 | 
			
		||||
## you may not use this file except in compliance with the License.
 | 
			
		||||
@@ -18,7 +18,7 @@
 | 
			
		||||
enginedir=/usr/share/BBlog/engines
 | 
			
		||||
 | 
			
		||||
# version
 | 
			
		||||
version=2.1.4
 | 
			
		||||
version=2.3
 | 
			
		||||
 | 
			
		||||
function print_config {
 | 
			
		||||
  echo "engine: $engine"
 | 
			
		||||
@@ -222,7 +222,8 @@ function replace_format {
 | 
			
		||||
 | 
			
		||||
    # apply filter
 | 
			
		||||
    if [ -n "$filter" ]; then
 | 
			
		||||
      sed_cmd=$(eval "echo \$filter_$filter")
 | 
			
		||||
      # replace '%' inside filter text
 | 
			
		||||
      sed_cmd=$(replace_format "$(eval echo \$filter_$filter)")
 | 
			
		||||
      replacement=$(eval "echo \$$field" | sed -r "$sed_cmd" )
 | 
			
		||||
    else
 | 
			
		||||
      replacement=$(eval "echo \$$field")
 | 
			
		||||
@@ -235,12 +236,13 @@ function replace_format {
 | 
			
		||||
    out="${out//\%$command\%/$replacement}"
 | 
			
		||||
  done
 | 
			
		||||
 | 
			
		||||
  # un-escape '%' in replacement
 | 
			
		||||
  out="${out//::iansays:percent::/\%}"
 | 
			
		||||
 | 
			
		||||
  # finish replacing newlines
 | 
			
		||||
  out="${out//\\n/%}"
 | 
			
		||||
  out=$(echo "$out" | tr "%" "\n")
 | 
			
		||||
 | 
			
		||||
  # un-escape '%' in replacement
 | 
			
		||||
  out="${out//::iansays:percent::/\%}"
 | 
			
		||||
 | 
			
		||||
  echo "$out"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
base_SQL="SELECT title,author,journal,year,token,doi,arxiv,citeref,prauth,bibtex FROM bibliography"
 | 
			
		||||
base_SQL_noprauth="SELECT title,author,journal,year,token,doi,arxiv,citeref,bibtex FROM bibliography"
 | 
			
		||||
base_SQL="SELECT title,author,journal,year,token,doi,arxiv,citeref,prauth,bibtex,url FROM bibliography"
 | 
			
		||||
base_SQL_noprauth="SELECT title,author,journal,year,token,doi,arxiv,citeref,bibtex,url FROM bibliography"
 | 
			
		||||
 | 
			
		||||
# add quotes
 | 
			
		||||
function SQL_addquotes {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
.Dd $Mdocdate: November 13 2019 $
 | 
			
		||||
.Dt BBLOG 2.1.4
 | 
			
		||||
.Dd $Mdocdate: July 26 2023 $
 | 
			
		||||
.Dt BBLOG 2.3
 | 
			
		||||
.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-2019
 | 
			
		||||
copyright Ian Jauslin 2015-2023
 | 
			
		||||
.Sh SEE ALSO
 | 
			
		||||
.Sx BBlog-sqlite Ns (7)
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
.Dd $Mdocdate: Novermber 5 2019 $
 | 
			
		||||
.Dd $Mdocdate: July 26 2023 $
 | 
			
		||||
.Dt BBLOG-sqlite
 | 
			
		||||
.Os
 | 
			
		||||
.Sh DESCRIPTION
 | 
			
		||||
@@ -28,11 +28,13 @@ label of the reference
 | 
			
		||||
.It prauth
 | 
			
		||||
bibliography entries are ordered alphabetically with respect to this entry
 | 
			
		||||
label of the reference
 | 
			
		||||
.It url
 | 
			
		||||
link to paper
 | 
			
		||||
.El
 | 
			
		||||
.Sh AUTHORS
 | 
			
		||||
The sqlite BBlog engine was written by Ian Jauslin.
 | 
			
		||||
.Sh COPYRIGHT
 | 
			
		||||
copyright Ian Jauslin 2015-2019
 | 
			
		||||
copyright Ian Jauslin 2015-2023
 | 
			
		||||
.Sh SEE ALSO
 | 
			
		||||
.Sx BBlog Ns (1) ,
 | 
			
		||||
.Sx sqlite3 Ns (1)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user