/[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 104 - (show annotations) (download) (as text)
Thu Sep 9 20:01:13 2010 UTC (9 years, 2 months ago) by william
File MIME type: application/x-sh
File size: 2651 byte(s)
don't auto branch unless build was successful
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 if [ "$4" == "--no-cleanup" ] ; then
18 DISABLE_CLEANUP="1"
19 fi
20
21 # output variables
22 echo "---------------------------------------------------------------------------------------"
23 echo "AUTO BUILD CONFIG:"
24 echo
25 echo -e "\\tMSBUILD PATH: $MSBUILD"
26 echo -e "\\tPCSX2 VCS BUILD PATH: $PCSX2_BUILD_TMP"
27 echo -e "\\tPCSX2 VCS PROJECT FILE: $VSC_PROJECT_FILE"
28 echo -e "\\tPCSX2 VERSION: $VSC_BUILD_VERSION_UPSTREAM"
29 echo -e "\\tPCSX2 LOCAL VERSION: $VSC_BUILD_VERSION_LOCAL"
30 echo
31 echo "---------------------------------------------------------------------------------------"
32
33 echo
34 echo "PERFORMING AUTOBUILD:"
35
36
37
38 # call auto prebuild
39 if [ "$DISABLE_PREBUILD" == "0" ] ; then
40 if [ "$AUTO_PREBUILD_DONE" == "" ] ; then
41 "$downstream_export_location/auto_prebuild_latest_upstream.sh"
42 if [ "$AUTO_PREBUILD_DONE" != "true" ] ; then
43 echo "PREBUILD FAILED..."
44 exit 1
45 fi
46 fi
47 else
48 echo "PREBUILD HAS BEEN DISABLED..."
49 cd "$PCSX2_BUILD_TMP"
50 find -name *.pch -exec rm -f {} \;
51 echo
52 fi
53
54 # START VISUAL STUDIO BUILD SUPPORT
55 export BUILD_SUCCESS=0
56 echo "PERFORMING BUILD:"
57 "$MSBUILD" /nologo /t:Clean,rebuild "$VSC_PROJECT_PATH_WIN32" && BUILD_SUCCESS=0 || BUILD_SUCCESS=1
58 # END VISUAL STUDIO BUILD SUPPORT
59
60 #echo "BUILD SUCCESS: $BUILD_SUCCESS"
61
62 if [ "$BUILD_SUCCESS" == 0 ] ; then
63 echo "BUILD COMPLETED..."
64 echo
65
66 # START POST BUILD
67 echo "PERFORMING POSTBUILD:"
68 cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$BRANCH_LOCATION/$BRANCH_NAME/bin/"
69 echo "POSTBUILD COMPLETED..."
70 # END POST BUILD
71
72 # CLEANUP
73 echo "PERFORMING CLEANUP"
74 if [ "$DISABLE_CLEANUP" == "0" ] ; then
75 cd "$BUILD_TMP_DIR"
76 rm -Rf "$PCSX2_BUILD_TMP"
77 rm -Rf *
78 echo "CLEANUP COMPLETE..."
79 else
80 echo "CLEANUP DISABLED..."
81 fi
82
83 echo
84 echo "AUTOBUILD COMPLETE..."
85 # perform auto tagging
86 if [ "$DISABLE_AUTO_TAG" == "0" ] ; then
87 "$downstream_export_location/auto_branch_latest_upstream.sh"
88 "$downstream_export_location/auto_tag_latest_upstream.sh"
89 else
90 echo "AUTO BUILD TAGGING HAS BEEN DISABLED ... not calling auto_tag_latest_upstream.sh --> to enable do not use --no-auto-tag"
91 fi
92 else
93
94 # CLEANUP
95 echo "PERFORMING CLEANUP"
96
97 if [ "$DISABLE_CLEANUP" == "0" ] ; then
98 cd "$BUILD_TMP_DIR"
99 rm -Rf "$PCSX2_BUILD_TMP"
100 rm -Rf *
101 echo "CLEANUP COMPLETE..."
102 else
103 echo "CLEANUP DISABLED..."
104 fi
105 echo
106 echo "BUILD FAILED..."
107 echo
108 echo "AUTOBUILD FAILED..."
109 fi

  ViewVC Help
Powered by ViewVC 1.1.22