Skip to content

Commit 84cc377

Browse files
committedFeb 20, 2017
release.pl: allow tagging branches as ltr on point releases and
bypass pre-commit hooks
1 parent 7800ee8 commit 84cc377

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed
 

‎scripts/release.pl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ ($$)
7676
$i++ if defined $dopoint;
7777
pod2usage("Exactly one of -major, -minor or -point expected") if $i!=1;
7878
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;
8079
pod2usage("Pre-major releases can only be minor releases") if $dopremajor && !$dominor;
8180
pod2usage("No CMakeLists.txt in current directory") unless -r "CMakeLists.txt";
8281

@@ -155,7 +154,7 @@ ($$)
155154
print "Pulling transifex translations...\n";
156155
run( "scripts/pull_ts.sh", "pull_ts.sh failed" );
157156
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" );
159158
} else {
160159
print "TRANSIFEX UPDATE SKIPPED!\n";
161160
}
@@ -167,7 +166,7 @@ ($$)
167166
unless( $dopoint ) {
168167
run( "scripts/update-news.pl $newmajor $newminor '$newreleasename'", "could not update news" ) if $major>2 || ($major==2 && $minor>14);
169168

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" );
171170

172171
print "Creating and checking out branch...\n";
173172
run( "git checkout -b $relbranch", "git checkout release branch failed" );
@@ -190,14 +189,15 @@ ($$)
190189
print "WARNING: NO images/splash/splash-release.xcf.bz2\n";
191190
}
192191

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" );
194193
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;
196194
} 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" );
198196
run( "git tag $reltag -m 'Version $version'", "tag failed" );
199197
}
200198

199+
run( "git tag $ltrtag -m 'Long term release $release'", "ltr tag failed" ) if $doltr;
200+
201201
print "Producing archive...\n";
202202
run( "git archive --format tar --prefix=qgis-$version/ $reltag | bzip2 -c >qgis-$version.tar.bz2", "git archive failed" );
203203
run( "md5sum qgis-$version.tar.bz2 >qgis-$version.tar.bz2.md5", "md5sum failed" );
@@ -216,7 +216,7 @@ ($$)
216216
run( "cp /tmp/changelog debian", "restore changelog failed" );
217217
run( "dch -r ''", "dch failed" );
218218
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" );
220220

221221
push @topush, "master_$newmajor";
222222

@@ -228,7 +228,7 @@ ($$)
228228
run( "cp /tmp/changelog debian", "restore changelog failed" );
229229
run( "dch -r ''", "dch failed" );
230230
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" );
232232

233233
push @topush, $branch;
234234
}
@@ -238,7 +238,7 @@ ($$)
238238

239239
print "Push dry-run...\n";
240240
run( "git push -n --follow-tags origin $topush", "push dry run failed" );
241-
print "Now manually push and upload the tarballs :\n\tgit push --follow-tags origin $topush\n\trsync qgis-$version.tar.bz2* qgis.org:/var/www/downloads/\n\n";
241+
print "Now manually push and upload the tar balls:\n\tgit push --follow-tags origin $topush\n\trsync qgis-$version.tar.bz2* ssh.qgis.org:/var/www/downloads/\n\n";
242242
print "WARNING: TRANSIFEX UPDATE SKIPPED!\n" if $skipts;
243243

244244

0 commit comments

Comments
 (0)
Please sign in to comment.