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.

20 lines
624 B

  1. #!/bin/bash
  2. #
  3. function list_staging_files {
  4. cd staging_dir/target-*/; find \
  5. \( \( -name "root-x86" -or -name "packages" -or -name "stamp" -or -name "pkginfo" \) -prune \) -or -true \
  6. \( -path "*ruby*" -or -name "erb" -or -name "gem" -or -name "irb" -or -name "rake" -or -name "rdoc" -or -name "ri" -or -name "testrb" \) \
  7. -print | sort
  8. }
  9. function list_ipkg_files {
  10. for OPKG in bin/*/packages/packages/*ruby*; do
  11. tar --to-stdout -xzf "$OPKG" ./data.tar.gz | tar tz | sed -e 's%/$%%'
  12. done | sort -u
  13. }
  14. echo " Staging Packages"
  15. diff -y <(list_staging_files) <(list_ipkg_files)