mirror of the now-defunct rocklinux.org
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.

65 lines
1.9 KiB

  1. #!/bin/bash
  2. #
  3. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  4. #
  5. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  6. # Please add additional copyright information _after_ the line containing
  7. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  8. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  9. #
  10. # ROCK Linux: rock-src/scripts/Update-Src
  11. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  12. #
  13. # This program is free software; you can redistribute it and/or modify
  14. # it under the terms of the GNU General Public License as published by
  15. # the Free Software Foundation; either version 2 of the License, or
  16. # (at your option) any later version. A copy of the GNU General Public
  17. # License can be found at Documentation/COPYING.
  18. #
  19. # Many people helped and are helping developing ROCK Linux. Please
  20. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  21. # file for details.
  22. #
  23. # --- ROCK-COPYRIGHT-NOTE-END ---
  24. #
  25. # The Update script updates the ROCK source tree (or individual packages)
  26. # using rsync. It does not update your tar balls!
  27. #
  28. srcroot="rsync://www.rocklinux.org/rock-2.1"
  29. help_msg() {
  30. echo
  31. echo "Usage: $0 [ -srcroot <URL> ]"
  32. echo
  33. echo " Update the entire ROCK Linux tree to the current development snapshot using"
  34. echo " 'rsync'. It does not update your tar balls, that is you still have to run"
  35. echo " ./scripts/Download for updated packages."
  36. echo
  37. echo " Warning: It will remove changes you have made to the source tree!"
  38. echo
  39. echo " The default for -srcroot is '$srcroot'."
  40. echo
  41. exit 1
  42. }
  43. while [ "$1" ] ; do
  44. case "$1" in
  45. -srcroot) srcroot="$2" ; shift ;;
  46. *) help_msg ;;
  47. esac
  48. shift
  49. done
  50. cmd="rsync -rltzv --delete"
  51. for x in Documentation architecture package misc scripts target
  52. do cmd="$cmd --include='/$x' --include='/$x/**'"; done
  53. cmd="$cmd --exclude='*' $srcroot ."
  54. echo "Running '$cmd' ..."
  55. eval "$cmd"
  56. echo
  57. echo "You might need to run ./scripts/Download now."
  58. echo