;shake setversion: print hledger bounds for review
This commit is contained in:
		
							parent
							
								
									6fc77ac095
								
							
						
					
					
						commit
						6e2d4ce425
					
				
							
								
								
									
										17
									
								
								Shake.hs
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								Shake.hs
									
									
									
									
									
								
							| @ -101,13 +101,14 @@ makeinfo = "makeinfo" ++ " --no-warn"  -- silence makeinfo warnings - comment ou | |||||||
| pandoc   = "pandoc --strip-comments" | pandoc   = "pandoc --strip-comments" | ||||||
| gitcommit = "git commit --allow-empty" | gitcommit = "git commit --allow-empty" | ||||||
| 
 | 
 | ||||||
| -- Must support both BSD sed and GNU sed. Tips: | -- We should work with both BSD and GNU sed. Tips: | ||||||
| -- BSD: |  | ||||||
| -- use [a-z] [0-9] instead of \w \d etc. | -- use [a-z] [0-9] instead of \w \d etc. | ||||||
| -- GNU: | -- backslash-escape things like: { & | ||||||
| -- backslash-escape { |  | ||||||
| sed = "sed -E" | sed = "sed -E" | ||||||
| 
 | 
 | ||||||
|  | -- We should work with both BSD and GNU grep. | ||||||
|  | grep = "grep -E" | ||||||
|  | 
 | ||||||
| -- The kind of markdown used in our doc source files. | -- The kind of markdown used in our doc source files. | ||||||
| fromsrcmd = "-f markdown-smart-tex_math_dollars" | fromsrcmd = "-f markdown-smart-tex_math_dollars" | ||||||
| 
 | 
 | ||||||
| @ -370,9 +371,11 @@ main = do | |||||||
|           arg = "'s/"++pat++"/"++rpl++"/'" |           arg = "'s/"++pat++"/"++rpl++"/'" | ||||||
|         cmd_ Shell sed "-i -e" arg out |         cmd_ Shell sed "-i -e" arg out | ||||||
| 
 | 
 | ||||||
|         -- tagrelease: \ |         let pkg = takeDirectory out | ||||||
|         --   $(call def-help,tagrelease, commit a release tag based on $(VERSIONFILE) for each package ) |         when (pkg /= "hledger-lib") $ liftIO $ do | ||||||
|         --   for p in $(PACKAGES); do git tag -f $$p-$(VERSION); done |           putStrLn $ out++": hledger bounds are now (improve if needed):" | ||||||
|  |           cmd_ Shell grep "'^ *- +hledger.*[<>=]'" out  | ||||||
|  |             " || [[ $? == 1 ]]"  -- ignore no matches, https://unix.stackexchange.com/a/427598 | ||||||
| 
 | 
 | ||||||
|       phony "cabalfiles" $ docabalfiles |       phony "cabalfiles" $ docabalfiles | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user