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.

70 lines
2.2 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-System
  11. # ROCK Linux is Copyright (C) 1998 - 2003 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. config=default
  25. while [ "$1" ] ; do
  26. case "$1" in
  27. -cfg)
  28. config=$2 ; shift ; shift ;;
  29. -ignore-chksum)
  30. options="$options -ignore-chksum" ; shift ;;
  31. *)
  32. echo
  33. echo "Usage: $0 [ -cfg config ] [ -ignore-chksum ] "
  34. echo
  35. echo " Update (re-build) all packages on the local system for which newer versions"
  36. echo " are available."
  37. echo " Warning: this script is unusable at the moment and explicitly disabled!"
  38. echo
  39. echo " -cfg config the build configuration to use"
  40. echo " -ignore-chksum ignore checksums on package source directories"
  41. echo " (e.g. package/base/glibc/) when looking for new packages"
  42. echo
  43. exit 1 ;;
  44. esac
  45. done
  46. exit 1
  47. . scripts/parse-config
  48. ./scripts/Create-UpdList -cfg $config $options | grep -v "Not installed." | cut -f1 -d: | \
  49. while read package ; do
  50. if [[ ${package} = glibc* ]] ; then
  51. echo
  52. echo "Not rebuilding package ${package} automatically since"
  53. echo "it is way to important and a broken build can do much"
  54. echo "harm to the system."
  55. elif [ -f /var/adm/logs/9-${package}.err ] ; then
  56. echo
  57. echo "Found /var/adm/logs/9-${package}.err. Not building"
  58. echo "package ${package} - please remove this file first."
  59. else
  60. ./scripts/Build-Pkg -cfg $config -update $package
  61. fi
  62. done
  63. echo