Show More
@@ -0,0 +1,11 b'' | |||||
|
1 | FROM debian:jessie | |||
|
2 | RUN apt-get update && apt-get install -y \ | |||
|
3 | build-essential \ | |||
|
4 | debhelper \ | |||
|
5 | dh-python \ | |||
|
6 | devscripts \ | |||
|
7 | python \ | |||
|
8 | python-all-dev \ | |||
|
9 | python-docutils \ | |||
|
10 | zip \ | |||
|
11 | unzip |
@@ -0,0 +1,39 b'' | |||||
|
1 | #!/bin/bash -eu | |||
|
2 | ||||
|
3 | . $(dirname $0)/dockerlib.sh | |||
|
4 | . $(dirname $0)/packagelib.sh | |||
|
5 | ||||
|
6 | BUILDDIR=$(dirname $0) | |||
|
7 | export ROOTDIR=$(cd $BUILDDIR/..; pwd) | |||
|
8 | ||||
|
9 | checkdocker | |||
|
10 | ||||
|
11 | PLATFORM="debian-$1" | |||
|
12 | shift # extra params are passed to build process | |||
|
13 | ||||
|
14 | initcontainer $PLATFORM | |||
|
15 | ||||
|
16 | DEBBUILDDIR=$ROOTDIR/packages/$PLATFORM | |||
|
17 | contrib/builddeb --debbuilddir $DEBBUILDDIR/staged --prepare | |||
|
18 | ||||
|
19 | DSHARED=/mnt/shared/ | |||
|
20 | if [ $(uname) = "Darwin" ] ; then | |||
|
21 | $DOCKER run -u $DBUILDUSER --rm -v $DEBBUILDDIR:$DSHARED -v $PWD:/mnt/hg $CONTAINER \ | |||
|
22 | sh -c "cd /mnt/hg && make clean && make local" | |||
|
23 | fi | |||
|
24 | $DOCKER run -u $DBUILDUSER --rm -v $DEBBUILDDIR:$DSHARED -v $PWD:/mnt/hg $CONTAINER \ | |||
|
25 | sh -c "cd /mnt/hg && make PREFIX=$DSHARED/staged/usr install" | |||
|
26 | $DOCKER run -u $DBUILDUSER --rm -v $DEBBUILDDIR:$DSHARED $CONTAINER \ | |||
|
27 | dpkg-deb --build $DSHARED/staged | |||
|
28 | if [ $(uname) = "Darwin" ] ; then | |||
|
29 | $DOCKER run -u $DBUILDUSER --rm -v $DEBBUILDDIR:$DSHARED -v $PWD:/mnt/hg $CONTAINER \ | |||
|
30 | sh -c "cd /mnt/hg && make clean" | |||
|
31 | fi | |||
|
32 | ||||
|
33 | gethgversion | |||
|
34 | ||||
|
35 | rm -r $DEBBUILDDIR/staged | |||
|
36 | mv $DEBBUILDDIR/staged.deb $DEBBUILDDIR/mercurial-$version-$release.deb | |||
|
37 | ||||
|
38 | echo | |||
|
39 | echo "Build complete - results can be found in $DEBBUILDDIR" |
@@ -163,6 +163,10 b' debian-jessie:' | |||||
163 | mv debbuild/*.deb packages/debian-jessie |
|
163 | mv debbuild/*.deb packages/debian-jessie | |
164 | rm -rf debbuild |
|
164 | rm -rf debbuild | |
165 |
|
165 | |||
|
166 | docker-debian-jessie: | |||
|
167 | mkdir -p packages/debian/jessie | |||
|
168 | contrib/dockerdeb jessie | |||
|
169 | ||||
166 | fedora20: |
|
170 | fedora20: | |
167 | mkdir -p packages/fedora20 |
|
171 | mkdir -p packages/fedora20 | |
168 | contrib/buildrpm |
|
172 | contrib/buildrpm |
General Comments 0
You need to be logged in to leave comments.
Login now