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

  ViewVC Help
Powered by ViewVC 1.1.22