Compare commits
	
		
			No commits in common. "c019a1536d605bf91d96f163d34e757aad99ca9b" and "ac3290ae3e00485dfe769678f434dbdf2886d3e7" have entirely different histories.
		
	
	
		
			c019a1536d
			...
			ac3290ae3e
		
	
		
							
								
								
									
										7
									
								
								justfile
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								justfile
									
									
									
									
									
								
							@ -4,19 +4,20 @@ default:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# print assembled text to stdout
 | 
					# print assembled text to stdout
 | 
				
			||||||
build:
 | 
					build:
 | 
				
			||||||
  @find src -name '*.txt' -type f | sort -n | xargs m4 macros
 | 
					  @find src -name '*.txt' -type f -print0 | sort -nz | xargs -0 m4 macros
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# watch for changes and build index.html
 | 
					# watch for changes and build index.html
 | 
				
			||||||
watch:
 | 
					watch:
 | 
				
			||||||
  @find src -type f | entr just html
 | 
					  @find src -type f | entr just html
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					tohtml := "pandoc --toc -s -c static/styles/main.css -H static/head.html -f markdown+simple_tables"
 | 
				
			||||||
# create index.html
 | 
					# create index.html
 | 
				
			||||||
html:
 | 
					html:
 | 
				
			||||||
  @just build | pandoc --toc -s -c static/styles/main.css -H static/head.html -f markdown+simple_tables > index.html
 | 
					  @just build | {{tohtml}} > index.html
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# word count
 | 
					# word count
 | 
				
			||||||
words:
 | 
					words:
 | 
				
			||||||
  find src -type f | xargs wc -w
 | 
					  find src -type f -iname '*.txt' -print0 | xargs -0 wc -w
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# clean up artifacts
 | 
					# clean up artifacts
 | 
				
			||||||
clean:
 | 
					clean:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user