/[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 103 - (show annotations) (download) (as text)
Thu Sep 9 18:40:12 2010 UTC (9 years, 3 months ago) by william
File MIME type: application/x-sh
File size: 2588 byte(s)
add fourth parametater: --no-cleanup [disable(s) cleanup, 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 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_tag_latest_upstream.sh"
88 else
89 echo "AUTO BUILD TAGGING HAS BEEN DISABLED ... not calling auto_tag_latest_upstream.sh --> to enable do not use --no-auto-tag"
90 fi
91 else
92
93 # CLEANUP
94 echo "PERFORMING CLEANUP"
95
96 if [ "$DISABLE_CLEANUP" == "0" ] ; then
97 cd "$BUILD_TMP_DIR"
98 rm -Rf "$PCSX2_BUILD_TMP"
99 rm -Rf *
100 echo "CLEANUP COMPLETE..."
101 else
102 echo "CLEANUP DISABLED..."
103 fi
104 echo
105 echo "BUILD FAILED..."
106 echo
107 echo "AUTOBUILD FAILED..."
108 fi

  ViewVC Help
Powered by ViewVC 1.1.22