LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File update-packages.sh of Package kde-four-live (Project KDE:Medias)

#! /bin/sh

wget http://gitorious.org/opensuse/package-lists/blobs/raw/ca0ad02399a81c175a76da80ed156f2094dda345/output/opensuse/kde4_cd.i586.list
grep ^+ update-packages.patch | cut -b2- >> kde4_cd.i586.list
grep ^- update-packages.patch | cut -b2- | while read pack; do
  grep -x -v $pack kde4_cd.i586.list > new && mv new kde4_cd.i586.list
done
LC_ALL=C sort -o kde4_cd.i586.list -u kde4_cd.i586.list

(sed -n -e '1,/ PACKAGES BEGIN/p' kde-four-live.kiwi ; cat kde4_cd.i586.list | while read pack; do echo '<package name="'$pack'"/>'; done; sed -n -e '/ PACKAGES END/,$p' kde-four-live.kiwi ) | grep -v " type:$othertype " | \
    xmllint --format - > new && mv new kde-four-live.kiwi
rm kde4_cd.i586.list