begin to include automatic freecode submissions using cfreecode-api
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
		
					parent
					
						
							
								59dd52d555
							
						
					
				
			
			
				commit
				
					
						876eebe1c7
					
				
			
		
					 1 changed files with 33 additions and 0 deletions
				
			
		
							
								
								
									
										33
									
								
								build
									
										
									
									
									
								
							
							
						
						
									
										33
									
								
								build
									
										
									
									
									
								
							| 
						 | 
					@ -195,6 +195,39 @@ notes
 | 
				
			||||||
        burp -c system "$tar"
 | 
					        burp -c system "$tar"
 | 
				
			||||||
    ;;
 | 
					    ;;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    dist-freecode)
 | 
				
			||||||
 | 
					        version=$($0 changelog-version)
 | 
				
			||||||
 | 
					        api_token=$(awk '/machine freecode login/ { print $8 }' ~/.netrc)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        printf "Enter tag list for freecode release %s> " "$version"
 | 
				
			||||||
 | 
					        read taglist
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        printf "Enter changelog for freecode release %s> " "$version"
 | 
				
			||||||
 | 
					        read changelog
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        echo "Submit preview"
 | 
				
			||||||
 | 
					        cat << eof
 | 
				
			||||||
 | 
					tag_list = $taglist
 | 
				
			||||||
 | 
					changelog = $changelog
 | 
				
			||||||
 | 
					version = $version
 | 
				
			||||||
 | 
					eof
 | 
				
			||||||
 | 
					        printf "Press enter to submit to freecode> "
 | 
				
			||||||
 | 
					        read dummy
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        cat << eof | cfreecode-api cdist
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "auth_code": "$api_token",
 | 
				
			||||||
 | 
					            "release": {
 | 
				
			||||||
 | 
					                "tag_list": "REPLACEME",
 | 
				
			||||||
 | 
					                "version": "$version",
 | 
				
			||||||
 | 
					                "changelog": "REPLACEMETOO",
 | 
				
			||||||
 | 
					                "hidden_from_frontpage": false
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					eof
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    ;;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    dist-pypi)
 | 
					    dist-pypi)
 | 
				
			||||||
        $0 man
 | 
					        $0 man
 | 
				
			||||||
        $0 version
 | 
					        $0 version
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue