X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=scripts%2Fdebian%2Fupdate-bugdoctxt;h=d5e6416ae8a2e2f6f4e82ade409ed81eefa125ac;hb=2a10967af5974e4fa513d029fb995e122d90501a;hp=d5568f58ce23b865bd1c7c95b615ec9c9eafd70c;hpb=6a4cddfbe864e563e671fe5dabf5600c4783af5c;p=dak.git diff --git a/scripts/debian/update-bugdoctxt b/scripts/debian/update-bugdoctxt index d5568f58..d5e6416a 100755 --- a/scripts/debian/update-bugdoctxt +++ b/scripts/debian/update-bugdoctxt @@ -1,18 +1,21 @@ -#!/bin/sh -e +#!/bin/bash -. vars +set -e + +export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars +. $SCRIPTVARS export TERM=linux destdir=$ftpdir/doc -urlbase=http://www.debian.org/Bugs/ +urlbase=https://www.debian.org/Bugs/ cd $destdir convert () { src=$1; dst=$2 rm -f .new-$dst - echo Generating $dst from http://www.debian.org/Bugs/$src ... + echo Generating $dst from https://www.debian.org/Bugs/$src ... lynx -nolist -dump $urlbase$src | sed -e 's/^ *$//' | perl -00 -ne 'exit if /Back to the Debian Project homepage/; print unless ($.==1 || $.==2 || $.==3 || /^\s*Other BTS pages:$/m)' >.new-$dst if cmp -s .new-$dst $dst ; then rm -f .new-$dst else mv -f .new-$dst $dst