Guest User

Untitled

a guest
Jan 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. # !/bin/bash
  2.  
  3. if [ $# == "2" ]; #if there are exactly two arguements provided
  4. then
  5.  
  6. if [ -a $1 ]; #file exists
  7. then
  8. if [ $2 == "debug" ];
  9. then
  10. echo "Build $1 in $2 mode"
  11. C:/Program Files (x86)/Microsoft Visual Studio 9.0/Common7/IDE/devenv /build debug $1 /out log.txt
  12. fi
  13.  
  14. if [ $2 == "release" ];
  15. then
  16. echo "Build $1 in $2 mode"
  17. devenv /build release $1 /out log.txt
  18. fi
  19. fi
  20. fi
Add Comment
Please, Sign In to add comment