Skip to content
Browse files

Build (release): Updated release script to use 1-8-stable and Trac re…

  • Loading branch information...
1 parent ca46a3a commit 4e289e8962f9c6791234206573ff7928d0d886ba @scottgonzalez scottgonzalez committed Jan 12, 2011
Showing with 15 additions and 16 deletions.
  1. +15 −16 build/release/prepare-release
31 build/release/prepare-release
@@ -5,7 +5,8 @@ repo_dir="$base_dir/jquery-ui"
-remote_cmd="ssh /srv/"
@@ -25,6 +26,7 @@ cd $base_dir
echo "Cloning repo from $github_repo..."
git clone $github_repo
cd $repo_dir
+git checkout $git_branch
echo "Environment setup complete."
@@ -43,11 +45,12 @@ echo "------------------------"
# NOTE: this will be different for minor and major releases
-version_new="${major_minor}.$(($point + 1))"
-version_next=`cat version.txt`
+version_new=`cat version.txt`
+version_new=${version_new:0:$((${#version_new} - 3))}
+version="${major_minor}.$(($point - 1))"
+version_next="${major_minor}.$(($point + 1))pre"
echo "We are going from $version to $version_new."
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
echo "Adding Trac tickets to changelog..."
-$remote_cmd/generate-changelog >> $base_dir/changelog
+curl $trac_changelog >> $base_dir/changelog
echo "Changelog complete."
@@ -114,11 +119,11 @@ git whatchanged $version... --pretty=format:"$format_contributors" \
# find all 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
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
# find all people that were thanked
@@ -162,7 +167,7 @@ git tag $version_new
echo "Updating version.txt to $version_next..."
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..."
@@ -206,7 +211,6 @@ echo
# TODO: automate this
# NOTE: this will be different for minor and major releases
# Create new milestrone and version
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."
-# Update milestone for all fixed tickets
-echo "Change all $milestone fixed tickets to $version_new."
-echo "Press enter when done."
echo "Trac updates complete."

0 comments on commit 4e289e8

Please sign in to comment.
Something went wrong with that request. Please try again.