3 # This file is part of DisOrder
4 # Copyright (C) 2005-2009 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
26 v=$(make echo-version)
27 d=$(make echo-distdir)
30 # Report and execute a command remotely
38 # Build .debs and copy to the right place
40 local h=$1 # build host
45 remote $h "mkdir -p _builds"
46 remote $h "rm -rf _builds/*.deb _builds/$d"
48 remote $h "cd _builds && tar xfj $src"
49 if [ "$vs" != "" ]; then
50 remote $h "cd _builds/$d && scripts/setversion $v~$vs 'Backport to $vs' $dist"
52 remote $h "cd _builds/$d && fakeroot debian/rules binary"
54 scp $h:_builds/*.deb $web/$f/.
59 # Debian lenny (32-bit)
60 build leucomorph lenny "" stable
62 # Debian lenny (64-bit)
63 build araminta lenny "" stable
68 for f in *.[1-9].html; do
71 sed < $f > $web/$f 's/^@.*//'
73 cp plumbing.svg $web/.
74 if [ -f plumbing.png ]; then
75 cp plumbing.png $web/.