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