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

  ViewVC Help
Powered by ViewVC 1.1.22