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.
 
 
 

75 lines
2.5 KiB

  1. #!/bin/sh
  2. #
  3. # Script to generate diffs, bin.diffs and deleted files list 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. # Michael Brade <brade@informatik.uni-muenchen.de>
  9. OLDVER=3.1rc5
  10. NEWVER=3.1rc6
  11. OLDDIR=/home/ftp/pub/kde/unstable/kde-3.1-rc5/src
  12. NEWDIR=/home/ftp/pub/kde/unstable/kde-3.1-rc6/src
  13. WRKDIR="$HOME/KDE-Diffs-work"
  14. DSTDIR="$HOME/KDE-Diffs"
  15. PACKAGES="tdeaddons tdeadmin tdeartwork tdebase tdebindings tdeedu tdegames tdegraphics \
  16. tdelibs tdemultimedia tdenetwork tdepim tdesdk tdetoys tdeutils"
  17. # tde-i18n
  18. #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 \
  19. # nn nso pl pt pt_BR ro ru sk sl sr sv ta th tr uk ven vi xh zh_CN zh_TW zu"
  20. mkdir -p $WRKDIR
  21. mkdir -p $DSTDIR
  22. cd $WRKDIR
  23. for package in $PACKAGES; do
  24. # i18n
  25. # package=tde-i18n-$package
  26. # kde sources
  27. echo -e "Unpacking $package-$OLDVER"
  28. tar xjf $OLDDIR/$package-$OLDVER.tar.bz2
  29. echo -e "Unpacking $package-$NEWVER"
  30. tar xjf $NEWDIR/$package-$NEWVER.tar.bz2
  31. echo -e "Diffing $package"
  32. diff -dr -u0 $package-$OLDVER $package-$NEWVER > $DSTDIR/$package-$OLDVER-$NEWVER.diff
  33. done
  34. echo -e "\n"
  35. cd $DSTDIR
  36. for package in $PACKAGES; do
  37. # package=tde-i18n-$package;
  38. echo -e "Looking for diffing bins in $package"
  39. fgrep "Binary files $package-$OLDVER" $package-$OLDVER-$NEWVER.diff | awk -F' and ' '{ print $2 }' | awk -F' differ' '{ print $1 }' > $WRKDIR/$package-$OLDVER-$NEWVER.bins
  40. done
  41. cd $DSTDIR
  42. for package in $PACKAGES; do
  43. # package=tde-i18n-$package;
  44. echo -e "Looking for new files in $package"
  45. fgrep "Only in $package-$NEWVER" $package-$OLDVER-$NEWVER.diff | sed s/"Only in "// | sed s/"\: "/"\/"/ > $WRKDIR/$package-$OLDVER-$NEWVER.new
  46. cd $WRKDIR
  47. cat $package-$OLDVER-$NEWVER.new >> $package-$OLDVER-$NEWVER.bins
  48. done
  49. cd $DSTDIR
  50. for package in $PACKAGES; do
  51. # package=tde-i18n-$package;
  52. echo -e "Looking for deleted files in $package"
  53. fgrep "Only in $package-$OLDVER" $package-$OLDVER-$NEWVER.diff | sed s/"Only in "// | sed s/"\: "/"\/"/ > $DSTDIR/$package-$OLDVER-$NEWVER.deleted
  54. done
  55. cd $WRKDIR
  56. for package in $PACKAGES; do
  57. # package=tde-i18n-$package
  58. echo -e "Creating bins.tar for $package"
  59. tar cf $DSTDIR/$package-$OLDVER-$NEWVER.bins.tar -T $WRKDIR/$package-$OLDVER-$NEWVER.bins
  60. done