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.

22 lines
575 B

  1. #!/bin/bash
  2. if [ ! "$1" -o ! "$2" ] ; then
  3. echo "You must specify old and new version ..."
  4. exit -1
  5. fi
  6. for x in kde* arts ; do
  7. [ -f $x/$x.desc ] || continue
  8. echo "Updating $x ..."
  9. sed -e s,$1,$2,g \
  10. -e "s/\[D\] [0-9]* /\[D\] 0 /" $x/$x.desc > $x/$x.desc.new
  11. mv $x/$x.desc.new $x/$x.desc
  12. done
  13. # The version of arts is 1.x.y, but the download dir contains 3.x.y, hence
  14. # the arts.desc is changed above and below.
  15. x="arts"
  16. echo "Updating $x ..."
  17. sed -e s,1.${1:2},1.${2:2},g \
  18. -e "s/\[D\] [0-9]* /\[D\] 0 /" $x/$x.desc > $x/$x.desc.new
  19. mv $x/$x.desc.new $x/$x.desc