-
Notifications
You must be signed in to change notification settings - Fork 5
/
release-build.sh
48 lines (41 loc) · 1.64 KB
/
release-build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# release a mapnik tag on launchpad
# first create a new PPA like ppa:mapnik/v2.1.0, then run these commands
# copy boost packages over to it, if needed
# https://launchpad.net/~mapnik/+archive/boost/+copy-packages
# WARNING: only copy 2 boost packages at a time to avoid likely timeouts
GPGKEY=89DBC525
DEBFULLNAME="Dane Springmeyer (Mapnik Releases)"
DEBEMAIL="[email protected]"
DEST="mapnik" # the launchpad account name
DISTS="saucy raring quantal precise lucid"
#DIST="precise"
PACKAGE="mapnik"
BUILD_VERSION="2.2.0"
DATE_REPR=$(date -R)
SOURCE="${PACKAGE}_${BUILD_VERSION}"
ORIG_TAR="${SOURCE}.orig.tar.bz2"
PPA="ppa:${DEST}/v${BUILD_VERSION}"
UBUNTU_VERSION="1"
DISTRO_VERSION="1"
mkdir deb-packaging
cd deb-packaging
wget http://mapnik.s3.amazonaws.com/dist/v${BUILD_VERSION}/mapnik-v${BUILD_VERSION}.tar.bz2
tar xf mapnik-v${BUILD_VERSION}.tar.bz2
mv mapnik-v${BUILD_VERSION} "${SOURCE}"
tar cjf "${ORIG_TAR}" "${SOURCE}/"
git clone https://github.com/mapnik/debian
cp -r "debian/2.2.x/debian" "${SOURCE}/"
CHANGELOG_NOTE="v${BUILD_VERSION} release (https://github.com/mapnik/mapnik/wiki/Release${BUILD_VERSION})"
for DIST in ${DISTS}; do
DIST_VERSION="${BUILD_VERSION}-ubuntu${UBUNTU_VERSION}~${DIST}${DISTRO_VERSION}";
echo "${PACKAGE} (${DIST_VERSION}) ${DIST}; urgency=medium" > "${SOURCE}/debian/changelog"
echo >> "${SOURCE}/debian/changelog"
echo " * ${CHANGELOG_NOTE}" >> "${SOURCE}/debian/changelog"
echo >> "${SOURCE}/debian/changelog"
echo " -- ${DEBFULLNAME} <${DEBEMAIL}> ${DATE_REPR}" >> "${SOURCE}/debian/changelog"
cd ${SOURCE};
debuild -S -k${GPGKEY}
dput -f "$PPA" ../*source.changes
rm ../*ubuntu1*
cd ../
done