/[pcsx2_0.9.7]/auto_build_latest_upstream.sh
ViewVC logotype

Annotation of /auto_build_latest_upstream.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 111 - (hide 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 william 92 #!/bin/bash
2 william 109 #. ./auto_defs.sh
3 william 92
4 william 109
5    
6 william 97 if [ "$1" != "" ] ; then
7     export OVERRIDE_TMP_BUILD_PATH="$1"
8     . ./auto_build_defs.sh
9     fi
10    
11 william 109 #UPDATE PCSX2 VERSION
12     PCSX2_VERSION=`cat "$$PCSX2_BUILD_TMP/bin/pcsx2-version.txt"`
13    
14 william 100 export DISABLE_AUTO_TAG="0"
15    
16 william 105 if [ "$2" == "--no-auto-branch" ] ; then
17     DISABLE_AUTO_BRANCH="1"
18 william 100 fi
19 william 101 if [ "$3" == "--no-prebuild" ] ; then
20     DISABLE_PREBUILD="1"
21     fi
22 william 103 if [ "$4" == "--no-cleanup" ] ; then
23     DISABLE_CLEANUP="1"
24     fi
25 william 100
26 william 92 # 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 william 109 echo -e "\\tPCSX2 UPSTREAM VERSION: $VSC_BUILD_VERSION_UPSTREAM"
34     echo -e "\\tPCSX2 LOCAL TRUNK VERSION: $PCSX2_VERSION"
35 william 95 echo -e "\\tPCSX2 LOCAL VERSION: $VSC_BUILD_VERSION_LOCAL"
36 william 92 echo
37     echo "---------------------------------------------------------------------------------------"
38    
39     echo
40     echo "PERFORMING AUTOBUILD:"
41    
42 william 95
43    
44 william 96 # call auto prebuild
45 william 101 if [ "$DISABLE_PREBUILD" == "0" ] ; then
46 william 102 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 william 101 else
54     echo "PREBUILD HAS BEEN DISABLED..."
55 william 103 cd "$PCSX2_BUILD_TMP"
56     find -name *.pch -exec rm -f {} \;
57 william 101 echo
58 william 98 fi
59 william 92
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 william 111 cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$downstream_export_location/trunk/bin/"
75 william 92 echo "POSTBUILD COMPLETED..."
76     # END POST BUILD
77    
78     # CLEANUP
79     echo "PERFORMING CLEANUP"
80 william 103 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 william 92
89     echo
90     echo "AUTOBUILD COMPLETE..."
91     # perform auto tagging
92 william 105 if [ "$DISABLE_AUTO_BRANCH" == "0" ] ; then
93 william 106 # Always force auto branch update after building
94     "$downstream_export_location/auto_branch_latest_upstream.sh" --force-update
95 william 95 else
96 william 105 echo "AUTO BUILD BRANCH HAS BEEN DISABLED ... not calling auto_branch_latest_upstream.sh --> to enable do not use --no-auto-branch"
97 william 95 fi
98 william 92 else
99    
100     # CLEANUP
101     echo "PERFORMING CLEANUP"
102 william 103
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 william 92 echo
112     echo "BUILD FAILED..."
113     echo
114     echo "AUTOBUILD FAILED..."
115     fi

  ViewVC Help
Powered by ViewVC 1.1.22