Other shared files
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.
 
 
 

63 lines
2.0 KiB

  1. #!/bin/sh
  2. #
  3. # Script to generate xdelta diffs for KDE and KDE i18n.
  4. # Requires the source packages to be in $OLDDIR and $NEWDIR
  5. # The resulting diffs will end up in $DSTDIR.
  6. # $WRKDIR is used as work area
  7. #
  8. OLDVER=3.1rc5
  9. NEWVER=3.1rc6
  10. OLDDIR=/home/ftp/pub/kde/unstable/kde-3.1-rc5/src
  11. NEWDIR=/home/ftp/pub/kde/unstable/kde-3.1-rc6/src
  12. WRKDIR="$HOME/KDE-Delta-work"
  13. DSTDIR="$HOME/KDE-Delta"
  14. PACKAGES="tdeaddons tdeadmin tdeartwork tdebase tdebindings tdeedu tdegames tdegraphics \
  15. tdelibs tdemultimedia tdenetwork tdepim tdesdk tdetoys tdeutils"
  16. # tde-i18n
  17. I18N_PACKAGES="af ar bg bs ca cs da de el en_GB eo es et fa fi fr he hu it ja lt mt nb nl \
  18. nn nso pl pt pt_BR ro ru sk sl sr sv ta th tr uk ven vi xh zh_CN zh_TW zu"
  19. mkdir -p $WRKDIR
  20. mkdir -p $DSTDIR
  21. mkdir -p $DSTDIR/tde-i18n
  22. # kde sources
  23. cd $WRKDIR
  24. for package in $PACKAGES; do
  25. echo -e "Decompressing $package-$OLDVER"
  26. cp $OLDDIR/$package-$OLDVER.tar.bz2 .
  27. bunzip2 $package-$OLDVER.tar.bz2
  28. echo -e "Decompressing $package-$NEWVER"
  29. cp $NEWDIR/$package-$NEWVER.tar.bz2 .
  30. bunzip2 $package-$NEWVER.tar.bz2
  31. echo -e "Diffing $package"
  32. xdelta delta -9 $package-$OLDVER.tar $package-$NEWVER.tar $DSTDIR/patch-$package-$OLDVER-$NEWVER
  33. rm $package-$OLDVER.tar
  34. rm $package-$NEWVER.tar
  35. done
  36. # i18n
  37. cd $WRKDIR
  38. for package in $I18N_PACKAGES; do
  39. package=tde-i18n-$package
  40. echo -e "Decompressing $package-$OLDVER"
  41. cp $OLDDIR/tde-i18n/$package-$OLDVER.tar.bz2 .
  42. bunzip2 $package-$OLDVER.tar.bz2
  43. echo -e "Decompressing $package-$NEWVER"
  44. cp $NEWDIR/tde-i18n/$package-$NEWVER.tar.bz2 .
  45. bunzip2 $package-$NEWVER.tar.bz2
  46. echo -e "Diffing $package"
  47. xdelta delta -9 $package-$OLDVER.tar $package-$NEWVER.tar $DSTDIR/tde-i18n/patch-$package-$OLDVER-$NEWVER
  48. rm $package-$OLDVER.tar
  49. rm $package-$NEWVER.tar
  50. done