My favorites | Sign in
Project Home Downloads Source
Checkout   Browse   Changes    
 
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
#!/bin/sh

# This scripts is meant to create deb packages for stable releases. It will best
# work with ubuntu, but it should work on debian and even other distros, as long
# as pbuilder, debootstrap and devscripts packages are available.

# This script expects configuration file as parameter (see e.g. nightly.cfg)

[ ! "$1" ] && echo "Usage: $0 file.cfg" > /dev/stderr && exit 1
set -e

# read the variables from config file
. "$1"

# create the source packages
DISTS="$LOCAL_DISTS"
TMP="$LOCAL_TMP"
. "$RES_DIR/dsccreate.sh"

export PATH=$PATH:/usr/sbin

for dist in $LOCAL_DISTS; do
for arch in $ARCHS; do
# create the chroot if it doesn't exist yet
if [ ! -f "/var/cache/pbuilder/$dist-$arch-base.tgz" ]; then
sudo DIST=$dist ARCH=$arch pbuilder --create --configfile "$RES_DIR/pbuilderrc" --distribution $dist --architecture $arch
#import key into newly created chroot
echo "apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $GPG_KEY" > "$TMP/keyscript.sh"
chmod a+x "$TMP/keyscript.sh"
sudo DIST=$dist ARCH=$arch pbuilder --execute --save-after-exec --configfile "$RES_DIR/pbuilderrc" --distribution $dist --architecture $arch -- "$TMP/keyscript.sh"
rm -f "$TMP/keyscript.sh"
fi;
# build the binary packages
sudo DIST=$dist ARCH=$arch pbuilder --build --configfile "$RES_DIR/pbuilderrc" --distribution $dist --architecture $arch --debbuildopts "-j$JOBS " "$TMP/upp_${VERSION}-${BUILD}~${dist}0.dsc"
done
done

Change log

r4741 by dolik on Apr 3, 2012   Diff
.lpbuild2: debug packages, various fixes
and improvements
Go to: 
Project members, sign in to write a code review

Older revisions

r4712 by dolik on Mar 22, 2012   Diff
.lpbuild2: fix parallel builds
r4706 by dolik on Mar 20, 2012   Diff
.lpbuild2: multiple small fixes
r4581 by dolik on Feb 13, 2012   Diff
.lpbuild2: packaging improvements (RM
#244)
All revisions of this file

File info

Size: 1484 bytes, 36 lines

File properties

svn:eol-style
native
svn:executable
*
Powered by Google Project Hosting