begin to include automatic freecode submissions using cfreecode-api

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-10-31 08:52:40 +01:00
parent 59dd52d555
commit 876eebe1c7

33
build
View file

@ -195,6 +195,39 @@ notes
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)
$0 man
$0 version