76
76
$i ++ if defined $dopoint ;
77
77
pod2usage(" Exactly one of -major, -minor or -point expected" ) if $i !=1;
78
78
pod2usage(" Release name for major and minor releases expected" ) if !$dopoint && !defined $newreleasename ;
79
- pod2usage(" Long term releases only for major and minor releases" ) if $doltr && $dopoint ;
80
79
pod2usage(" Pre-major releases can only be minor releases" ) if $dopremajor && !$dominor ;
81
80
pod2usage(" No CMakeLists.txt in current directory" ) unless -r " CMakeLists.txt" ;
82
81
155
154
print " Pulling transifex translations...\n " ;
156
155
run( " scripts/pull_ts.sh" , " pull_ts.sh failed" );
157
156
run( " git add i18n/*.ts" , " adding translations failed" );
158
- run( " git commit -a -m \" translation update for $release from transifex\" " , " could not commit translation updates" );
157
+ run( " git commit -n - a -m \" translation update for $release from transifex\" " , " could not commit translation updates" );
159
158
} else {
160
159
print " TRANSIFEX UPDATE SKIPPED!\n " ;
161
160
}
167
166
unless ( $dopoint ) {
168
167
run( " scripts/update-news.pl $newmajor $newminor '$newreleasename '" , " could not update news" ) if $major >2 || ($major ==2 && $minor >14);
169
168
170
- run( " git commit -a -m \" changelog and news update for $release \" " , " could not commit changelog and news update" );
169
+ run( " git commit -n - a -m \" changelog and news update for $release \" " , " could not commit changelog and news update" );
171
170
172
171
print " Creating and checking out branch...\n " ;
173
172
run( " git checkout -b $relbranch " , " git checkout release branch failed" );
@@ -190,14 +189,15 @@ ($$)
190
189
print " WARNING: NO images/splash/splash-release.xcf.bz2\n " ;
191
190
}
192
191
193
- run( " git commit -a -m 'Release of $release ($newreleasename )'" , " release commit failed" );
192
+ run( " git commit -n - a -m 'Release of $release ($newreleasename )'" , " release commit failed" );
194
193
run( " git tag $reltag -m 'Version $release '" , " release tag failed" );
195
- run( " git tag $ltrtag -m 'Long term release $release '" , " ltr tag failed" ) if $doltr ;
196
194
} else {
197
- run( " git commit -a -m 'Release of $version '" , " release commit failed" );
195
+ run( " git commit -n - a -m 'Release of $version '" , " release commit failed" );
198
196
run( " git tag $reltag -m 'Version $version '" , " tag failed" );
199
197
}
200
198
199
+ run( " git tag $ltrtag -m 'Long term release $release '" , " ltr tag failed" ) if $doltr ;
200
+
201
201
print " Producing archive...\n " ;
202
202
run( " git archive --format tar --prefix=qgis-$version / $reltag | bzip2 -c >qgis-$version .tar.bz2" , " git archive failed" );
203
203
run( " md5sum qgis-$version .tar.bz2 >qgis-$version .tar.bz2.md5" , " md5sum failed" );
216
216
run( " cp /tmp/changelog debian" , " restore changelog failed" );
217
217
run( " dch -r ''" , " dch failed" );
218
218
run( " dch --newversion $newmajor .$newminor .0 'New development version $newmajor .$newminor after branch of $release '" , " dch failed" );
219
- run( " git commit -a -m 'New development branch for interim $newmajor .x releases'" , " bump version failed" );
219
+ run( " git commit -n - a -m 'New development branch for interim $newmajor .x releases'" , " bump version failed" );
220
220
221
221
push @topush , " master_$newmajor " ;
222
222
228
228
run( " cp /tmp/changelog debian" , " restore changelog failed" );
229
229
run( " dch -r ''" , " dch failed" );
230
230
run( " dch --newversion $newmajor .$newminor .0 'New development version $newmajor .$newminor after branch of $release '" , " dch failed" );
231
- run( " git commit -a -m 'Bump version to $newmajor .$newminor '" , " bump version failed" );
231
+ run( " git commit -n - a -m 'Bump version to $newmajor .$newminor '" , " bump version failed" );
232
232
233
233
push @topush , $branch ;
234
234
}
238
238
239
239
print " Push dry-run...\n " ;
240
240
run( " git push -n --follow-tags origin $topush " , " push dry run failed" );
241
- print " Now manually push and upload the tarballs :\n\t git push --follow-tags origin $topush \n\t rsync qgis-$version .tar.bz2* qgis.org:/var/www/downloads/\n\n " ;
241
+ print " Now manually push and upload the tar balls :\n\t git push --follow-tags origin $topush \n\t rsync qgis-$version .tar.bz2* ssh. qgis.org:/var/www/downloads/\n\n " ;
242
242
print " WARNING: TRANSIFEX UPDATE SKIPPED!\n " if $skipts ;
243
243
244
244
0 commit comments