blob: 381dafa5e1373064a3fb08d7744a9b52815eee69 (
plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#!/bin/bash
set -e
pkg_source=libjpeg-turbo
base_version=1.2.1
pkg_repository=git://git.linaro.org/people/tomgall/${pkg_source}-leb/${pkg_source}.git
git clone ${pkg_repository}
cd ${pkg_source}
git checkout -b linaro-leb origin/Linaro-LEB
cd ..
git_commit=`cd ${pkg_source} && git log -n1 --pretty=format:%h`
if [ -z "${git_commit}" ]; then
echo "Invalid git revision: ${git_commit}" >&2
exit 1
fi
pkg_version=${base_version}+git${BUILD_NUMBER}+`date +%Y%m%d`+${git_commit}
pkg_dir=${pkg_source}-${pkg_version}
cp -a ${pkg_source}/branches/1.2.x ${pkg_dir}
tar --exclude-vcs --exclude=debian -jcf ${pkg_source}_${pkg_version}.orig.tar.bz2 ${pkg_dir}
distributions=(precise)
currentdate=`date -R`
for distribution in ${distributions[@]}; do
echo "Prepare ${pkg_version} for ${distribution}"
cat > ${pkg_dir}/debian/changelog << EOF
${pkg_source} (${pkg_version}-0linaro1) ${distribution}; urgency=low
* CI - ${pkg_source} snapshot:
- repository: ${pkg_repository}
- commit: ${git_commit}
- build: ${BUILD_URL}
-- Linaro Packagers <linaro-pkg@lists.launchpad.net> ${currentdate}
EOF
cat ${pkg_source}/branches/1.2.x/debian/changelog >> ${pkg_dir}/debian/changelog
dpkg-source -b ${pkg_dir}
cd ${pkg_dir}
pkg_version_dpkg=`dpkg-parsechangelog | sed -n 's/^Version: //p'`
dpkg-genchanges -S > ../${pkg_source}_${pkg_version_dpkg}_source.changes
cd ..
done
rm -rf ${pkg_source} ${pkg_dir}
keyid=B86C70FE
debsign -k${keyid} ${pkg_source}_${pkg_version_dpkg}_source.changes
dput ppa-linaro-staging-overlay-${distribution} ${pkg_source}_${pkg_version_dpkg}_source.changes
# debsign/gpg and dput are assumed configured on the build system
#[ppa-linaro-staging-overlay-${distribution}]
#fqdn = ppa.launchpad.net
#method = ftp
#incoming = ~linaro-maintainers/staging-overlay/ubuntu/${distribution}
#login = anonymous
|