install_cpu2006 931 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/bash
  2. SPEC_DVD=$1
  3. if [ -z ${SPEC_DVD} ]
  4. then
  5. echo Usage: $0 PATH_TO_SPEC_DVD
  6. exit 1
  7. fi
  8. if [ ! -e ${SPEC_DVD}/benchspec/CPU2006/999.specrand/src/specrand.c ]
  9. then
  10. echo Cannot find SPEC sources at ${SPEC_DVD}
  11. exit 1
  12. fi
  13. if [ ! -e cpu2006/CPU2006/400.perlbench/src/Makefile.spec ]
  14. then
  15. echo Please run this script from the benchmarks/ directory
  16. exit 1
  17. fi
  18. echo Installing SPEC CPU2006 sources...
  19. cp -r ${SPEC_DVD}/benchspec/CPU2006/* cpu2006/CPU2006/
  20. echo Installing SPEC CPU2006 binary utilities...
  21. mkdir -p cpu2006/bin
  22. cp -r ${SPEC_DVD}/bin/* cpu2006/bin/
  23. #tar xjf ${SPEC_DVD}/tools/bin/linux-suse101-AMD64/cpu2006tools-linux-suse101-AMD64.tar.bz2 -C cpu2006
  24. tar xvf ${SPEC_DVD}/tools/bin/x86_64-linux/cpu2006tools-x86_64-linux.tar.bz2 -C cpu2006
  25. # Fix permissions when sources are copied from a read-only DVD image
  26. find cpu2006/CPU2006 -type d -exec chmod +w {} \;
  27. cp cpu2006/benchspec/Makefile.defaults cpu2006/