Diff of /make_release [c72c22] .. [9b4890]  Maximize  Restore

Switch to unified view

a/make_release b/make_release
...
...
50
50
51
# Raise error if "hg heads" reports multiple heads!
51
# Raise error if "hg heads" reports multiple heads!
52
#   optional -q arg to nix the error message to stderr
52
#   optional -q arg to nix the error message to stderr
53
check_heads() {
53
check_heads() {
54
    hg heads --template '{desc|firstline}\n' > $TMPFILE
54
    hg heads --template '{desc|firstline}\n' > $TMPFILE
55
    if [ `wc -l $TMPFILE` -gt 1 ]
55
    if [ `wc -l $TMPFILE | cut -f1 '-d '` -gt 1 ]
56
    then
56
    then
57
        if [ x"$1" != x-q ]
57
        if [ x"$1" != x-q ]
58
        then
58
        then
59
            echo "ERROR: Multiple Heads:" >&2
59
            echo "ERROR: Multiple Heads:" >&2
60
            cat $TMPFILE >&2
60
            cat $TMPFILE >&2
...
...
77
    else
77
    else
78
        return 1
78
        return 1
79
    fi
79
    fi
80
}
80
}
81
81
82
echo
82
echo "*************************************************************************"
83
echo "*************************************************************************"
83
echo "                      Rebuilding compiler_bc.py"
84
echo "                      Rebuilding compiler_bc.py"
84
echo "*************************************************************************"
85
echo "*************************************************************************"
86
echo
85
87
86
dir=pyke/krb_compiler/compiler_krb
88
dir=pyke/krb_compiler/compiled_krb
87
if [ ! -d "$dir" ]
89
if [ ! -d "$dir" ]
88
then
90
then
89
    mkdir "$dir"
91
    mkdir "$dir"
90
fi
92
fi
91
93
92
python <<!
94
python <<!
93
from pyke import krb_compiler
95
from pyke import krb_compiler
94
96
95
krb_compiler.compile_krb('compiler', 'pyke.krb_compiler.compiled_krb',
97
krb_compiler.compile_krb('compiler', 'pyke.krb_compiler.compiled_krb',
96
                         'pyke/krb_compiler/compiled_krb',
98
                         'pyke/krb_compiler/compiled_krb',
97
                         'pyke/krb_compiiler/compiler.krb')
99
                         'pyke/krb_compiler/compiler.krb')
98
!
100
!
99
mv pyke/krb_compiler/compiled_krb/compiler_bc.py pyke/krb_compiler
101
mv pyke/krb_compiler/compiled_krb/compiler_bc.py pyke/krb_compiler
100
102
103
echo
101
echo "*************************************************************************"
104
echo "*************************************************************************"
102
echo "                            Running testpyke"
105
echo "                            Running testpyke"
103
echo "*************************************************************************"
106
echo "*************************************************************************"
107
echo
104
108
105
./testpyke
109
./testpyke
106
110
111
echo
107
echo "*************************************************************************"
112
echo "*************************************************************************"
108
echo "                    Committing release documentation"
113
echo "                    Committing release documentation"
109
echo "*************************************************************************"
114
echo "*************************************************************************"
115
echo
110
116
111
do_commit -m "Release documentation for $release_number"
117
do_commit -m "Release documentation for $release_number"
112
118
113
check_status                # there shouldn't be any uncommitted files!
119
check_status                # there shouldn't be any uncommitted files!
114
120
121
echo
115
echo "*************************************************************************"
122
echo "*************************************************************************"
116
echo "                   Regenerating HTML documentation"
123
echo "                   Regenerating HTML documentation"
117
echo "*************************************************************************"
124
echo "*************************************************************************"
125
echo
118
126
119
cd doc/source
127
cd doc/source
120
bin/gen_html
128
bin/gen_html
121
cd ../..
129
cd ../..
122
130
123
do_commit -Am "Regenerated HTML documentation for $release_number"
131
do_commit -Am "Regenerated HTML documentation for $release_number"
124
132
133
echo
125
echo "*************************************************************************"
134
echo "*************************************************************************"
126
echo "                      Fetching from sourceforge"
135
echo "                      Fetching from sourceforge"
127
echo "*************************************************************************"
136
echo "*************************************************************************"
137
echo
128
138
129
cd "../$RELEASE_1"
139
cd "../$RELEASE_1"
130
hg pull
140
hg pull
131
cd "$start_repo"
141
cd "$start_repo"
132
142
133
if do_fetch ../"$RELEASE_1"
143
if do_fetch ../"$RELEASE_1"
134
then
144
then
135
    ./testpyke
145
    ./testpyke
136
fi
146
fi
137
147
148
echo
138
echo "*************************************************************************"
149
echo "*************************************************************************"
139
echo "                        Merging into $PYKE"
150
echo "                        Merging into $PYKE"
140
echo "*************************************************************************"
151
echo "*************************************************************************"
152
echo
141
153
142
cd "../$PYKE"
154
cd "../$PYKE"
143
hg pull
155
hg pull
144
cd ..
156
cd ..
145
rm -rf "$PYKE"_temp
157
rm -rf "$PYKE"_temp
...
...
150
./testpyke
162
./testpyke
151
hg push                         # back to $PYKE
163
hg push                         # back to $PYKE
152
cd ..
164
cd ..
153
rm -rf "$PYKE"_temp
165
rm -rf "$PYKE"_temp
154
166
167
echo
155
echo "*************************************************************************"
168
echo "*************************************************************************"
156
echo "                      Merging into $PRE_2TO3_R1"
169
echo "                      Merging into $PRE_2TO3_R1"
157
echo "*************************************************************************"
170
echo "*************************************************************************"
171
echo
158
172
159
cd "$PRE_2TO3_R1"
173
cd "$PRE_2TO3_R1"
160
hg pull
174
hg pull
161
cd ..
175
cd ..
162
rm -rf "$PRE_2TO3_R1"_temp
176
rm -rf "$PRE_2TO3_R1"_temp
...
...
171
./run_pre_test
185
./run_pre_test
172
hg push                         # back to $PRE_2TO3_R1
186
hg push                         # back to $PRE_2TO3_R1
173
cd ..
187
cd ..
174
rm -rf "$PRE_2TO3_R1"_temp
188
rm -rf "$PRE_2TO3_R1"_temp
175
189
190
echo
176
echo "*************************************************************************"
191
echo "*************************************************************************"
177
echo "                       Merging into $PRE_2TO3"
192
echo "                       Merging into $PRE_2TO3"
178
echo "*************************************************************************"
193
echo "*************************************************************************"
194
echo
179
195
180
cd "$PRE_2TO3"
196
cd "$PRE_2TO3"
181
hg pull
197
hg pull
182
cd ..
198
cd ..
183
rm -rf "$PRE_2TO3"_temp
199
rm -rf "$PRE_2TO3"_temp
...
...
192
208
193
hg push                         # back to $PRE_2TO3
209
hg push                         # back to $PRE_2TO3
194
cd ..
210
cd ..
195
rm -rf "$PRE_2TO3"_temp
211
rm -rf "$PRE_2TO3"_temp
196
212
213
echo
197
echo "*************************************************************************"
214
echo "*************************************************************************"
198
echo "             Building release files into dist directory"
215
echo "             Building release files into dist directory"
199
echo "*************************************************************************"
216
echo "*************************************************************************"
217
echo
200
218
201
cd "$start_repo"
219
cd "$start_repo"
202
rm -rf build dist pyke.egg-info
220
rm -rf build dist pyke.egg-info
203
python setup.py sdist --formats zip
221
python setup.py -q sdist --formats zip
204
cp ../"$PRE_2TO3_R1"_temp_test/dist/pyke*.zip dist
222
cp ../"$PRE_2TO3_R1"_temp_test/dist/pyke*.zip dist
205
rm -rf ../"$PRE_2TO3_R1"_temp_test
223
rm -rf ../"$PRE_2TO3_R1"_temp_test
206
cp RELEASE_NOTES-1.0.txt dist
224
cp RELEASE_NOTES-1.0.txt dist
207
225
226
echo
208
echo "*************************************************************************"
227
echo "*************************************************************************"
209
echo "                  Tagging release $release_number"
228
echo "                  Tagging release $release_number"
210
echo "*************************************************************************"
229
echo "*************************************************************************"
230
echo
211
231
212
hg tag "$release_number"
232
hg tag "$release_number"
213
233
214
hg push                         # back to $RELEASE_1
234
hg push                         # back to $RELEASE_1
215
235
216
236
217
echo "done -- quiting early for testing"
237
echo "done -- quiting early for testing"
218
exit
238
exit
219
239
220
240
241
echo
221
echo "*************************************************************************"
242
echo "*************************************************************************"
222
echo "                   Pushing sources to sourceforge"
243
echo "                   Pushing sources to sourceforge"
223
echo "*************************************************************************"
244
echo "*************************************************************************"
245
echo
224
246
225
cd ../"$RELEASE_1"
247
cd ../"$RELEASE_1"
226
hg push
248
hg push
227
cd ../"$PYKE"
249
cd ../"$PYKE"
228
hg push
250
hg push
229
cd ../"$PRE_2TO3_R1"
251
cd ../"$PRE_2TO3_R1"
230
hg push
252
hg push
231
cd ../"$PRE_2TO3"
253
cd ../"$PRE_2TO3"
232
hg push
254
hg push
233
255
256
echo
234
echo "*************************************************************************"
257
echo "*************************************************************************"
235
echo "                Copying release files to sourceforge"
258
echo "                Copying release files to sourceforge"
236
echo "*************************************************************************"
259
echo "*************************************************************************"
260
echo
237
261
238
cd dist
262
cd dist
239
rsync -e ssh * mtnyogi,pyke@frs.sourceforge.net:/home/frs/project/p/py/pyke/pyke/"$release_number"
263
rsync -e ssh * mtnyogi,pyke@frs.sourceforge.net:/home/frs/project/p/py/pyke/pyke/"$release_number"
240
264

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks