@@ -5,7 +5,8 @@ repo_dir="$base_dir/jquery-ui"
5
5
release_dir=" $repo_dir /build/release"
6
6
7
7
github_repo=" git@github.com:jquery/jquery-ui.git"
8
- remote_cmd=" ssh jqadmin@ui-dev.jquery.com /srv/dev.jqueryui.com/prepare-release"
8
+ git_branch=" 1-8-stable"
9
+ trac_url=" http://bugs.jqueryui.com"
9
10
10
11
11
12
@@ -25,6 +26,7 @@ cd $base_dir
25
26
echo " Cloning repo from $github_repo ..."
26
27
git clone $github_repo
27
28
cd $repo_dir
29
+ git checkout $git_branch
28
30
29
31
echo
30
32
echo " Environment setup complete."
@@ -43,11 +45,12 @@ echo "------------------------"
43
45
echo
44
46
45
47
# NOTE: this will be different for minor and major releases
46
- version=` $remote_cmd /get-latest-version`
47
- major_minor=${version% .* }
48
- point=${version##* .}
49
- version_new=" ${major_minor} .$(( $point + 1 )) "
50
- version_next=` cat version.txt`
48
+ version_new=` cat version.txt`
49
+ version_new=${version_new: 0: $((${# version_new} - 3))}
50
+ major_minor=${version_new% .* }
51
+ point=${version_new##* .}
52
+ version=" ${major_minor} .$(( $point - 1 )) "
53
+ version_next=" ${major_minor} .$(( $point + 1 )) pre"
51
54
52
55
echo " We are going from $version to $version_new ."
53
56
echo " version.txt will be set to $version_next when complete."
@@ -85,7 +88,9 @@ git whatchanged $version... --pretty=format:"$format_full" \
85
88
86
89
# find all fixed tickets
87
90
echo " Adding Trac tickets to changelog..."
88
- $remote_cmd /generate-changelog >> $base_dir /changelog
91
+ trac_changelog=" $trac_url /query?format=tab&milestone=$version_new "
92
+ trac_changelog=" $trac_changelog &resolution=fixed&col=id&col=component&col=summary&order=component"
93
+ curl $trac_changelog >> $base_dir /changelog
89
94
90
95
echo
91
96
echo " Changelog complete."
@@ -114,11 +119,11 @@ git whatchanged $version... --pretty=format:"$format_contributors" \
114
119
115
120
# find all reporters and commenters from Trac
116
121
echo " Adding reporters and commenters from Trac..."
117
- $remote_cmd /generate-contributors >> $base_dir /thankyou
122
+ curl " $trac_url /report/22?V= $version_new &max=-1&format=tab " | tail -n +2 >> $base_dir /thankyou
118
123
119
124
# sort names
120
125
echo " Sorting contributors..."
121
- LC_ALL=' C' sort -f $base_dir /thankyou | uniq > $base_dir /_thankyou
126
+ LC_ALL=' C' sort -f $base_dir /thankyou | col -b | uniq > $base_dir /_thankyou
122
127
mv $base_dir /_thankyou $base_dir /thankyou
123
128
124
129
# find all people that were thanked
@@ -162,7 +167,7 @@ git tag $version_new
162
167
echo " Updating version.txt to $version_next ..."
163
168
echo $version_next > version.txt
164
169
165
- git commit -a -m " Updating the master version to $version_next "
170
+ git commit -a -m " Updating the $git_branch version to $version_next "
166
171
echo " Committed version.txt..."
167
172
168
173
echo
206
211
207
212
# TODO: automate this
208
213
# NOTE: this will be different for minor and major releases
209
- milestone=` $remote_cmd /get-latest-milestone`
210
214
211
215
# Create new milestrone and version
212
216
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."
215
219
echo " Press enter when done."
216
220
read
217
221
218
- # Update milestone for all fixed tickets
219
- echo " Change all $milestone fixed tickets to $version_new ."
220
- echo " Press enter when done."
221
- read
222
-
223
222
echo
224
223
echo " Trac updates complete."
225
224
echo
0 commit comments