patch_install_cpu2006.sh 358 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. SPEC_DVD="$1"
  3. if test -z "$SPEC_DVD"
  4. then
  5. echo "usage: $0 <CPU2006 dir>" >&2
  6. exit 1
  7. fi
  8. PATCHDIR="$(dirname $(realpath $0))/spec2006-patches"
  9. cd "$SPEC_DVD"
  10. cd tools
  11. tar xvf tools_src.tar.bz2
  12. cd ..
  13. for patch in "$PATCHDIR"/*.patch
  14. do
  15. patch -p0 -i "$patch"
  16. done
  17. ./install.sh
  18. cd "$PATCHDIR/.."
  19. ./install_cpu2006 "$SPEC_DVD"