Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
51 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,11 +1,54 @@ | |||
#!/bin/sh | #!/bin/sh | ||
ARCH="x86" | |||
CONFIG="Debug" | |||
BUILD=false | |||
|
|||
USAGE="[-c <config>] -a <arch>" | |||
LONG_USAGE="Configuration options to pass to prebuild environment | |||
Options: | |||
-c|--config Build configuration Debug(default) or Release | |||
-a|--arch Architecture to target x86(default), x64, or AnyCPU | |||
" | |||
|
|||
while case "$#" in 0) break ;; esac | |||
do | |||
case "$1" in | |||
-c|--config) | |||
shift | |||
CONFIG="$1" | |||
;; | |||
-a|--arch) | |||
shift | |||
ARCH="$1" | |||
;; | |||
-b|--build) | |||
BUILD=true | |||
;; | |||
-h|--help) | |||
echo "$USAGE" | |||
echo "$LONG_USAGE" | |||
exit | |||
;; | |||
*) | |||
echo "Illegal option!" | |||
echo "$USAGE" | |||
echo "$LONG_USAGE" | |||
exit | |||
;; | |||
esac | |||
shift | |||
done | |||
|
|||
echo Configuring Aurora-Sim | echo Configuring Aurora-Sim | ||
wait 3 |
|
||
mono bin/Prebuild.exe /target vs2010 /targetframework v4_0 /conditionals LINUX\;NET_4_0 | mono bin/Prebuild.exe /target vs2010 /targetframework v4_0 /conditionals "LINUX;NET_4_0" | ||
if [ -d ".git" ]; then git log --pretty=format:"Aurora (%cd.%h)" --date=short -n 1 > bin/.version; fi | if [ -d ".git" ]; then git log --pretty=format:"Aurora (%cd.%h)" --date=short -n 1 > bin/.version; fi | ||
wait 3 |
|
||
echo Building Aurora-Sim | if ${BUILD:=true} ; then | ||
xbuild /property:DefineConstants="LINUX NET_4_0" | echo Building Aurora-Sim | ||
echo Finished Building Aurora | xbuild /property:Configuration="$CONFIG" /property:Platform="$ARCH" | ||
echo Thank you for choosing Aurora-Sim | echo Finished Building Aurora | ||
echo Please report any errors to out Mantis Bug Tracker http://mantis.aurora-sim.org/ | echo Thank you for choosing Aurora-Sim | ||
echo Please report any errors to out Mantis Bug Tracker http://mantis.aurora-sim.org/ | |||
fi |