2 # $Id: mkmaintainers,v 1.2 2001-09-26 03:47:15 troup Exp $
5 echo -n 'Creating Maintainers index ... '
11 nonusmaint="$masterdir/Maintainers_Versions-non-US"
14 if wget -q -O Maintainers_Versions-non-US.gz http://non-us.debian.org/indices-non-US/Maintainers_Versions.gz; then
16 gunzip -c ${nonusmaint}.gz > $nonusmaint
17 rm -f ${nonusmaint}.gz
21 $masterdir/charisma $nonusmaint $masterdir/pseudo-packages.maintainers | sed -e "s/~[^ ]*\([ ]\)/\1/" | awk '{printf "%-20s ", $1; for (i=2; i<=NF; i++) printf "%s ", $i; printf "\n";}' > .new-maintainers
24 cmp .new-maintainers Maintainers >/dev/null
27 if [ $rc = 1 ] || [ ! -f Maintainers ] ; then
28 echo -n "installing Maintainers ... "
29 mv -f .new-maintainers Maintainers
30 gzip -9v <Maintainers >.new-maintainers.gz
31 mv -f .new-maintainers.gz Maintainers.gz
32 elif [ $rc = 0 ] ; then
33 echo '(same as before)'
34 rm -f .new-maintainers