You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.0KB

  1. #!/bin/bash
  2. # Copyright (C) 2009 Jan Dittberner <jandd@debian.org> and others This
  3. # little script is free software; you can redistribute it and/or
  4. # modify it under the terms of the GNU General Public License as
  5. # published by the Free Software Foundation; version 3.
  6. #
  7. # On Debian systems, the complete text of the GNU General Public
  8. # License can be found in /usr/share/common-licenses/GPL-3 file.
  9. #
  10. # This script syncs local copies of the debian-keyring with
  11. # keyring.d.o (the keyring package is too old).
  12. #
  13. # ~/debian/keyring.debian.org/keyrings/ will be created if it doesn't exist.
  14. # Always exit if there is an error
  15. set -e
  16. # For the rsync of the debian keyrings and for the nm.gpg
  17. DESTDIR="${DEBHOME:-"$HOME/debian"}/keyring.debian.org/keyrings"
  18. # For the following calls use LANG=C - some output is used for
  19. # reports to a list / for an english report.
  20. LANG=C
  21. export LANG
  22. test -d $DESTDIR || mkdir -p $DESTDIR
  23. rsync -qcltz --block-size=8192 --partial --progress --exclude='emeritus-*' --exclude='removed-*' 'keyring.debian.org::keyrings/keyrings/*' $DESTDIR/.