mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Build (release): Updated release script to use 1-8-stable and Trac reports.
This commit is contained in:
parent
ca46a3a8a9
commit
4e289e8962
@ -5,7 +5,8 @@ repo_dir="$base_dir/jquery-ui"
|
|||||||
release_dir="$repo_dir/build/release"
|
release_dir="$repo_dir/build/release"
|
||||||
|
|
||||||
github_repo="git@github.com:jquery/jquery-ui.git"
|
github_repo="git@github.com:jquery/jquery-ui.git"
|
||||||
remote_cmd="ssh jqadmin@ui-dev.jquery.com /srv/dev.jqueryui.com/prepare-release"
|
git_branch="1-8-stable"
|
||||||
|
trac_url="http://bugs.jqueryui.com"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -25,6 +26,7 @@ cd $base_dir
|
|||||||
echo "Cloning repo from $github_repo..."
|
echo "Cloning repo from $github_repo..."
|
||||||
git clone $github_repo
|
git clone $github_repo
|
||||||
cd $repo_dir
|
cd $repo_dir
|
||||||
|
git checkout $git_branch
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Environment setup complete."
|
echo "Environment setup complete."
|
||||||
@ -43,11 +45,12 @@ echo "------------------------"
|
|||||||
echo
|
echo
|
||||||
|
|
||||||
# NOTE: this will be different for minor and major releases
|
# NOTE: this will be different for minor and major releases
|
||||||
version=`$remote_cmd/get-latest-version`
|
version_new=`cat version.txt`
|
||||||
major_minor=${version%.*}
|
version_new=${version_new:0:$((${#version_new} - 3))}
|
||||||
point=${version##*.}
|
major_minor=${version_new%.*}
|
||||||
version_new="${major_minor}.$(($point + 1))"
|
point=${version_new##*.}
|
||||||
version_next=`cat version.txt`
|
version="${major_minor}.$(($point - 1))"
|
||||||
|
version_next="${major_minor}.$(($point + 1))pre"
|
||||||
|
|
||||||
echo "We are going from $version to $version_new."
|
echo "We are going from $version to $version_new."
|
||||||
echo "version.txt will be set to $version_next when complete."
|
echo "version.txt will be set to $version_next when complete."
|
||||||
@ -85,7 +88,9 @@ git whatchanged $version... --pretty=format:"$format_full" \
|
|||||||
|
|
||||||
# find all fixed tickets
|
# find all fixed tickets
|
||||||
echo "Adding Trac tickets to changelog..."
|
echo "Adding Trac tickets to changelog..."
|
||||||
$remote_cmd/generate-changelog >> $base_dir/changelog
|
trac_changelog="$trac_url/query?format=tab&milestone=$version_new"
|
||||||
|
trac_changelog="$trac_changelog&resolution=fixed&col=id&col=component&col=summary&order=component"
|
||||||
|
curl $trac_changelog >> $base_dir/changelog
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Changelog complete."
|
echo "Changelog complete."
|
||||||
@ -114,11 +119,11 @@ git whatchanged $version... --pretty=format:"$format_contributors" \
|
|||||||
|
|
||||||
# find all reporters and commenters from Trac
|
# find all reporters and commenters from Trac
|
||||||
echo "Adding reporters and commenters from Trac..."
|
echo "Adding reporters and commenters from Trac..."
|
||||||
$remote_cmd/generate-contributors >> $base_dir/thankyou
|
curl "$trac_url/report/22?V=$version_new&max=-1&format=tab" | tail -n +2 >> $base_dir/thankyou
|
||||||
|
|
||||||
# sort names
|
# sort names
|
||||||
echo "Sorting contributors..."
|
echo "Sorting contributors..."
|
||||||
LC_ALL='C' sort -f $base_dir/thankyou | uniq > $base_dir/_thankyou
|
LC_ALL='C' sort -f $base_dir/thankyou | col -b | uniq > $base_dir/_thankyou
|
||||||
mv $base_dir/_thankyou $base_dir/thankyou
|
mv $base_dir/_thankyou $base_dir/thankyou
|
||||||
|
|
||||||
# find all people that were thanked
|
# find all people that were thanked
|
||||||
@ -162,7 +167,7 @@ git tag $version_new
|
|||||||
echo "Updating version.txt to $version_next..."
|
echo "Updating version.txt to $version_next..."
|
||||||
echo $version_next > version.txt
|
echo $version_next > version.txt
|
||||||
|
|
||||||
git commit -a -m "Updating the master version to $version_next"
|
git commit -a -m "Updating the $git_branch version to $version_next"
|
||||||
echo "Committed version.txt..."
|
echo "Committed version.txt..."
|
||||||
|
|
||||||
echo
|
echo
|
||||||
@ -206,7 +211,6 @@ echo
|
|||||||
|
|
||||||
# TODO: automate this
|
# TODO: automate this
|
||||||
# NOTE: this will be different for minor and major releases
|
# NOTE: this will be different for minor and major releases
|
||||||
milestone=`$remote_cmd/get-latest-milestone`
|
|
||||||
|
|
||||||
# Create new milestrone and version
|
# Create new milestrone and version
|
||||||
echo "$version_new was tagged at $version_new_time."
|
echo "$version_new was tagged at $version_new_time."
|
||||||
@ -215,11 +219,6 @@ echo "Create the $version_new Version with the above date and time."
|
|||||||
echo "Press enter when done."
|
echo "Press enter when done."
|
||||||
read
|
read
|
||||||
|
|
||||||
# Update milestone for all fixed tickets
|
|
||||||
echo "Change all $milestone fixed tickets to $version_new."
|
|
||||||
echo "Press enter when done."
|
|
||||||
read
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Trac updates complete."
|
echo "Trac updates complete."
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user