20 lines
		
	
	
	
		
			573 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			573 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| default:
 | |
|     @just --list
 | |
| 
 | |
| install_git_filters:
 | |
|     @git config filter.ageEncrypt.clean   "age -a -R key.pub"
 | |
|     @git config filter.ageEncrypt.smudge  "age -d -i key.txt"
 | |
|     @git config diff.ageEncrypt.textconv  "cat"
 | |
|     @git config filter.setHostname.clean  'sed -e "s/$(hostname)/<<hostname>>/g"'
 | |
|     @git config filter.setHostname.smudge 'sed -e "s/<<hostname>>/$(hostname)/g"'
 | |
| 
 | |
| re_checkout_git:
 | |
|     @git checkout -f
 | |
| 
 | |
| unlock_key: 
 | |
|     @[ -f key.txt ] || age -d -o key.txt key.txt.age
 | |
| 
 | |
| setup: 
 | |
|     just unlock_key
 | |
|     just install_git_filters
 | |
|     just re_checkout_git
 |