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.

19 lines
420 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* ; do
  7. echo "Updating $x ..."
  8. sed -e s,$1,$2,g \
  9. -e "s/\[D\] [0-9]* /\[D\] 0 /" $x/$x.desc > $x/$x.desc.new
  10. mv $x/$x.desc.new $x/$x.desc
  11. done
  12. x="arts"
  13. echo "Updating $x ..."
  14. sed -e s,1.${1:2},1.${2:2},g \
  15. -e "s/\[D\] [0-9]* /\[D\] 0 /" $x/$x.desc > $x/$x.desc.new
  16. mv $x/$x.desc.new $x/$x.desc