tools: make: refactor
This commit is contained in:
		
							parent
							
								
									af952532c9
								
							
						
					
					
						commit
						6c38f3dc1f
					
				
							
								
								
									
										5
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								Makefile
									
									
									
									
									
								
							| @ -1076,12 +1076,15 @@ haddock: \ | ||||
| # # 	cd site/api && \
 | ||||
| # # 	hoogle --convert=main.txt --output=default.hoo
 | ||||
| 
 | ||||
| CHANGELOGSTART=`git describe --tags --abbrev=0` | ||||
| #CHANGELOGSTART=2b4e7cdb
 | ||||
| 
 | ||||
| changelog-draft: \ | ||||
| 	$(call def-help,changelog-draft, print commits since last tag as org-mode nodes for drafting changelogs/release notes. Eg: make changelog-draft >>doc/CHANGES.draft.org ) | ||||
| 	@echo "* draft changelog for `git describe --tags`" | ||||
| 	@echo "** project" | ||||
| 	@git log --pretty=format:'ORGNODE %s (%an) %h%n%b' \
 | ||||
| 		--abbrev-commit --date-order `git describe --tags --abbrev=0`.. \
 | ||||
| 		--abbrev-commit --date-order $(CHANGELOGSTART).. \
 | ||||
| 		| sed -e 's/^\*/-/' -e 's/^ORGNODE/***/' \
 | ||||
| 		| sed -e 's/ (Simon Michael)//' | ||||
| 	@echo "** hledger-lib" | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user