/[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 96 - (show annotations) (download) (as text)
Thu Sep 9 17:10:43 2010 UTC (9 years, 3 months ago) by william
File MIME type: application/x-sh
File size: 1885 byte(s)
seperated pre-build from auto_build_latest_upstream.sh and put into auto_prebuild_latest_upstream.sh (this allows one to create a temporary build location without distrubing and trunk/branch line)
1 #!/bin/bash
2 . ./auto_defs.sh
3
4 # output variables
5 echo "---------------------------------------------------------------------------------------"
6 echo "AUTO BUILD CONFIG:"
7 echo
8 echo -e "\\tMSBUILD PATH: $MSBUILD"
9 echo -e "\\tPCSX2 VCS BUILD PATH: $PCSX2_BUILD_TMP"
10 echo -e "\\tPCSX2 VCS PROJECT FILE: $VSC_PROJECT_FILE"
11 echo -e "\\tPCSX2 VERSION: $VSC_BUILD_VERSION_UPSTREAM"
12 echo -e "\\tPCSX2 LOCAL VERSION: $VSC_BUILD_VERSION_LOCAL"
13 echo
14 echo "---------------------------------------------------------------------------------------"
15
16 echo
17 echo "PERFORMING AUTOBUILD:"
18
19 export DISABLE_AUTO_TAG="0"
20
21 if [ "$1" == "--no-auto-tag" ] ; then
22 DISABLE_AUTO_TAG="1"
23 fi
24
25
26 # call auto prebuild
27 "$downstream_export_location/auto_prebuild_latest_upstream.sh"
28
29 # START VISUAL STUDIO BUILD SUPPORT
30 export BUILD_SUCCESS=0
31 echo "PERFORMING BUILD:"
32 "$MSBUILD" /nologo /t:Clean,rebuild "$VSC_PROJECT_PATH_WIN32" && BUILD_SUCCESS=0 || BUILD_SUCCESS=1
33 # END VISUAL STUDIO BUILD SUPPORT
34
35 #echo "BUILD SUCCESS: $BUILD_SUCCESS"
36
37 if [ "$BUILD_SUCCESS" == 0 ] ; then
38 echo "BUILD COMPLETED..."
39 echo
40
41 # START POST BUILD
42 echo "PERFORMING POSTBUILD:"
43 cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$BRANCH_LOCATION/$BRANCH_NAME/bin/"
44 echo "POSTBUILD COMPLETED..."
45 # END POST BUILD
46
47 # CLEANUP
48 echo "PERFORMING CLEANUP"
49 cd "$BUILD_TMP_DIR"
50 rm -Rf "$PCSX2_BUILD_TMP"
51 rm -Rf *
52 echo "CLEANUP COMPLETE..."
53
54 echo
55 echo "AUTOBUILD COMPLETE..."
56 # perform auto tagging
57 if [ "$DISABLE_AUTO_TAG" == "0" ] ; then
58 "$downstream_export_location/auto_tag_latest_upstream.sh"
59 else
60 echo "AUTO BUILD TAGGING HAS BEEN DISABLED ... not calling auto_tag_latest_upstream.sh --> to enable do not use --no-auto-tag"
61 fi
62 else
63
64 # CLEANUP
65 echo "PERFORMING CLEANUP"
66 cd "$BUILD_TMP_DIR"
67 rm -Rf "$PCSX2_BUILD_TMP"
68 rm -Rf *
69 echo "CLEANUP COMPLETE..."
70 echo
71 echo "BUILD FAILED..."
72 echo
73 echo "AUTOBUILD FAILED..."
74 fi

  ViewVC Help
Powered by ViewVC 1.1.22