12 lines
		
	
	
	
		
			384 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			384 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
finish message:
 | 
						|
    git add .
 | 
						|
    git commit -m "{{message}}"
 | 
						|
    git push
 | 
						|
 | 
						|
create book chapter v1 v2:
 | 
						|
    #!/usr/bin/env bash
 | 
						|
    set -euxo pipefail
 | 
						|
    passage='{{book}}_{{chapter}}:{{v1}}-{{v2}}'
 | 
						|
    cd content/bible_journal
 | 
						|
    sed -e '/\$/{s/\$1/{{chapter}}/; s/\$2/{{v1}}/; s/\$3/{{v2}}/;}' -e "3s/{}/$(date +%Y-%m-%d)/" _template.txt > "${passage}.md"
 | 
						|
    vi + "${passage}.md"
 |