/[pcsx2_0.9.7]/auto_build_latest_upstream.sh
ViewVC logotype

Contents of /auto_build_latest_upstream.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 101 - (show annotations) (download) (as text)
Thu Sep 9 18:08:52 2010 UTC (9 years, 3 months ago) by william
File MIME type: application/x-sh
File size: 2285 byte(s)
add third parametater: --no-prebuild [disable(s) prebuild, useful when re-compiling testing code]
1 #!/bin/bash
2 . ./auto_defs.sh
3
4 if [ "$1" != "" ] ; then
5 export OVERRIDE_TMP_BUILD_PATH="$1"
6 . ./auto_build_defs.sh
7 fi
8
9 export DISABLE_AUTO_TAG="0"
10
11 if [ "$2" == "--no-auto-tag" ] ; then
12 DISABLE_AUTO_TAG="1"
13 fi
14 if [ "$3" == "--no-prebuild" ] ; then
15 DISABLE_PREBUILD="1"
16 fi
17
18 # output variables
19 echo "---------------------------------------------------------------------------------------"
20 echo "AUTO BUILD CONFIG:"
21 echo
22 echo -e "\\tMSBUILD PATH: $MSBUILD"
23 echo -e "\\tPCSX2 VCS BUILD PATH: $PCSX2_BUILD_TMP"
24 echo -e "\\tPCSX2 VCS PROJECT FILE: $VSC_PROJECT_FILE"
25 echo -e "\\tPCSX2 VERSION: $VSC_BUILD_VERSION_UPSTREAM"
26 echo -e "\\tPCSX2 LOCAL VERSION: $VSC_BUILD_VERSION_LOCAL"
27 echo
28 echo "---------------------------------------------------------------------------------------"
29
30 echo
31 echo "PERFORMING AUTOBUILD:"
32
33
34
35 # call auto prebuild
36 if [ "$DISABLE_PREBUILD" == "0" ] ; then
37 if [ "$AUTO_PREBUILD_DONE" == "" ] ; then
38 "$downstream_export_location/auto_prebuild_latest_upstream.sh"
39 if [ "$AUTO_PREBUILD_DONE" != "true" ] ; then
40 echo "PREBUILD FAILED..."
41 exit 1
42 fi
43 else
44 echo "PREBUILD HAS BEEN DISABLED..."
45 echo
46 fi
47
48 # START VISUAL STUDIO BUILD SUPPORT
49 export BUILD_SUCCESS=0
50 echo "PERFORMING BUILD:"
51 "$MSBUILD" /nologo /t:Clean,rebuild "$VSC_PROJECT_PATH_WIN32" && BUILD_SUCCESS=0 || BUILD_SUCCESS=1
52 # END VISUAL STUDIO BUILD SUPPORT
53
54 #echo "BUILD SUCCESS: $BUILD_SUCCESS"
55
56 if [ "$BUILD_SUCCESS" == 0 ] ; then
57 echo "BUILD COMPLETED..."
58 echo
59
60 # START POST BUILD
61 echo "PERFORMING POSTBUILD:"
62 cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$BRANCH_LOCATION/$BRANCH_NAME/bin/"
63 echo "POSTBUILD COMPLETED..."
64 # END POST BUILD
65
66 # CLEANUP
67 echo "PERFORMING CLEANUP"
68 cd "$BUILD_TMP_DIR"
69 rm -Rf "$PCSX2_BUILD_TMP"
70 rm -Rf *
71 echo "CLEANUP COMPLETE..."
72
73 echo
74 echo "AUTOBUILD COMPLETE..."
75 # perform auto tagging
76 if [ "$DISABLE_AUTO_TAG" == "0" ] ; then
77 "$downstream_export_location/auto_tag_latest_upstream.sh"
78 else
79 echo "AUTO BUILD TAGGING HAS BEEN DISABLED ... not calling auto_tag_latest_upstream.sh --> to enable do not use --no-auto-tag"
80 fi
81 else
82
83 # CLEANUP
84 echo "PERFORMING CLEANUP"
85 cd "$BUILD_TMP_DIR"
86 rm -Rf "$PCSX2_BUILD_TMP"
87 rm -Rf *
88 echo "CLEANUP COMPLETE..."
89 echo
90 echo "BUILD FAILED..."
91 echo
92 echo "AUTOBUILD FAILED..."
93 fi

  ViewVC Help
Powered by ViewVC 1.1.22