Counter Strike : Global Offensive Source Code
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
728 B

  1. #! /bin/sh -e
  2. # This script downgrades MSVC 2008 projects to MSVC 2005 projects, allowing
  3. # people with MSVC 2005 to open them. Otherwise, MSVC 2005 simply refuses to
  4. # open projects created with 2008. We run this as part of our release process.
  5. # If you obtained the code direct from version control and you want to use
  6. # MSVC 2005, you may have to run this manually. (Hint: Use Cygwin or MSYS.)
  7. for file in *.sln; do
  8. echo "downgrading $file..."
  9. sed -i -re 's/Format Version 10.00/Format Version 9.00/g;
  10. s/Visual Studio 2008/Visual Studio 2005/g;' $file
  11. done
  12. for file in *.vcproj; do
  13. echo "downgrading $file..."
  14. sed -i -re 's/Version="9.00"/Version="8.00"/g;' $file
  15. done
  16. # Yes, really, that's it.