download_runtimes.sh 385 B

12345678910111213141516171819
  1. #!/bin/sh -x
  2. #VS2013
  3. base_url=http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3
  4. tmp_path=${1:-/tmp/.vcredist}
  5. mkdir -p $tmp_path
  6. copy_cached_file() {
  7. file=$1
  8. if [ ! -e $tmp_path/$file ]; then
  9. wget -O $tmp_path/$file $base_url/$file
  10. fi
  11. cp -a $tmp_path/$file $PWD
  12. }
  13. copy_cached_file "vcredist_x64.exe"
  14. copy_cached_file "vcredist_x86.exe"