Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # !/bin/bash
- if [ $# == "2" ]; #if there are exactly two arguements provided
- then
- if [ -a $1 ]; #file exists
- then
- if [ $2 == "debug" ];
- then
- echo "Build $1 in $2 mode"
- C:/Program Files (x86)/Microsoft Visual Studio 9.0/Common7/IDE/devenv /build debug $1 /out log.txt
- fi
- if [ $2 == "release" ];
- then
- echo "Build $1 in $2 mode"
- devenv /build release $1 /out log.txt
- fi
- fi
- fi
Add Comment
Please, Sign In to add comment