Blockbuffer all output.
This commit is contained in:
		
							parent
							
								
									ecaf62f2d6
								
							
						
					
					
						commit
						fd89f1b99f
					
				
					 1 changed files with 14 additions and 2 deletions
				
			
		|  | @ -124,6 +124,18 @@ if (! ~ $#sidebar 0) | ||||||
| if (test -d $body) | if (test -d $body) | ||||||
|     body=$body/index |     body=$body/index | ||||||
| 
 | 
 | ||||||
|  | fn template { | ||||||
|  |     template.awk | rc | | ||||||
|  |     awk '{ | ||||||
|  |         buf = buf $0"\n" | ||||||
|  |         if(length(buf) > 8192) { | ||||||
|  |             printf "%s", buf | ||||||
|  |             buf = "" | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  |     END{ printf "%s", buf }' | ||||||
|  | } | ||||||
|  | 
 | ||||||
| # RSS | # RSS | ||||||
| fn statpost { | fn statpost { | ||||||
| 	f = $1 | 	f = $1 | ||||||
|  | @ -146,7 +158,7 @@ fn statpost { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| if(! ~ $REQUEST_URI */index.rss) { | if(! ~ $REQUEST_URI */index.rss) { | ||||||
| 	cat $headers $template | template.awk | rc | 	cat $headers $template | template | ||||||
| 	exit | 	exit | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -154,7 +166,7 @@ uri = `{echo $uri | sed 's/indexrss$//'} | ||||||
| uri=$baseuri$"uri | uri=$baseuri$"uri | ||||||
| 
 | 
 | ||||||
| # Should be in a separate file. | # Should be in a separate file. | ||||||
| cat <<'!' | template.awk | rc | cat <<'!' | template | ||||||
| <?xml version="1.0"?> | <?xml version="1.0"?> | ||||||
| <rss version="2.0"> | <rss version="2.0"> | ||||||
| 	<channel> | 	<channel> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kris Maglione
						Kris Maglione