Skip to content
Snippets Groups Projects
Commit f59df071 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Helper scripts for upgrading Bugzilla.

This was first used to upgrade to version 4.4.6.
parents
No related branches found
No related tags found
No related merge requests found
README 0 → 100644
This README contains checklists for how we manage the Bugzilla
installation at https://bugzilla.lysator.liu.se/.
Upgrading Bugzilla
==================
The first few steps can be done on any computer with Git and
pristine-tar installed.
* Clone the repo we use to keep Bugzilla, and this repo that contains
supporting scripts:
git clone git@git.lysator.liu.se:lysator/bugzilla.git
git clone git@git.lysator.liu.se:lysator/bugzilla-maint.git
* Download the new version:
wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.4.6.tar.gz
* Import the pristine release:
cd bugzilla
../bugzilla-maint/import-upstream 4.4.6
* Check that the pristine-tar has managed to create a
reasonably-sized delta:
git checkout pristine-tar
ls -l
The delta for the new version should be similar in size to other
deltas of nearby versions.
* Merge the relese to the master branch.
git checkout master
git merge bugzilla-4.4.6
* Push all changes.
git push origin master
git push origin pristine-tar
git push origin release-4.4
git push origin bugzilla-4.4.6
And, now that the preparations are done, do the actual upgrade.
* Run this:
ssh bugzilla.lysator.liu.se
su
cd /var/www/bugzilla
git fetch
* Shut down bugzilla, as explained in
http://www.bugzilla.org/docs/4.4/en/html/upgrade.html
* Run this:
git pull
./checksetup.pl
* Enable buzilla again.
#!/bin/sh
if [ $# -ne 1 ]
then
echo usage: $0 version >&2
exit 1
fi
version=$1
series=`echo $version | sed 's/\.[0-9]*$//'` || exit
tarfile=../bugzilla-$version.tar.gz
if ! [ -f $tarfile ]
then
echo missing $tarfile >&2
exit 1
fi
if [ -n "`git status --porcelain`" ]
then
echo working tree not clean: >&2
git status
exit 1
fi
if ! git checkout release-$series
then
echo Perhaps you need to create release-$series? >&2
exit 1
fi
if ! git pull --ff-only
then
echo Failed to re-fetch the release-$series branch before import >&2
exit 1
fi
git rm -rf --ignore-unmatch . || exit 1
git clean -d -f -x || exit 1
tar --strip-components=1 -x -f $tarfile || exit 1
git add -f -A -- . || exit 1
git commit -m"Imported Bugzilla $version." || exit 1
git tag bugzilla-$version || exit 1
pristine-tar commit $tarfile bugzilla-$version || exit 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment