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.

15 lines
322 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 arts* kde* quanta* ; do
  7. echo "Updateing $x ..."
  8. sed -e s/$1/$2/g \
  9. -e s,unstable/kde-$1,stable/kde-$2, \
  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