3 # This file is part of DisOrder
4 # Copyright (C) 2005-2009, 2011 Richard Kettlewell
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21 web=$HOME/public_html/web/disorder
27 v=$(make echo-version)
28 d=$(make echo-distdir)
36 # Execute a command in the build environment
43 v ssh ${target} "$cmd"
46 v schroot -c${target} -- bash -c "cd && $cmd"
56 # Put files into the build environment
64 v scp $src ${target}:$dst
67 v cp $src ${chroots}/${target}/home/${LOGNAME}/$dst
75 # Retrieve files form the build environment
83 v scp ${target}:$src $dst
86 v cp ${chroots}/${target}/home/${LOGNAME}/$src $dst
94 # Build a .deb in some build environment, and copy it to the distribution
97 local h=$1 # build host
98 local f=$2 # distribution directory ("for")
99 local vs=$3 # version suffix
100 local dist=$4 # distribution (stable/oldstable)
102 remote $h "mkdir -p _builds"
103 remote $h "rm -rf _builds/*.deb _builds/$d"
104 put $src $h _builds/$src
105 remote $h "cd _builds && tar xfj $src"
106 if [ "$vs" != "" ]; then
107 remote $h "cd _builds/$d && scripts/setversion $v~$vs 'Backport to $vs' $dist"
109 remote $h "cd _builds/$d && fakeroot debian/rules binary"
111 get $h _builds/\*.deb $web/$f/.
115 #build chroot:lenny64 lenny lenny oldstable
116 #build ssh:leucomorph lenny lenny oldstable
117 build ssh:araminta squeeze "" stable
118 build ssh:sandestin squeeze "" stable
121 cp $src README README.developers CHANGES.html $web
123 for f in *.[1-9].html; do
126 sed < $f > $web/$f 's/^@.*//'
128 cp plumbing.svg $web/.
129 if [ -f plumbing.png ]; then
130 cp plumbing.png $web/.