/[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 106 - (hide annotations) (download) (as text)
Thu Sep 9 20:13:18 2010 UTC (9 years, 3 months ago) by william
File MIME type: application/x-sh
File size: 2671 byte(s)
Always force auto branch update after building
1 william 92 #!/bin/bash
2 william 94 . ./auto_defs.sh
3 william 92
4 william 97 if [ "$1" != "" ] ; then
5     export OVERRIDE_TMP_BUILD_PATH="$1"
6     . ./auto_build_defs.sh
7     fi
8    
9 william 100 export DISABLE_AUTO_TAG="0"
10    
11 william 105 if [ "$2" == "--no-auto-branch" ] ; then
12     DISABLE_AUTO_BRANCH="1"
13 william 100 fi
14 william 101 if [ "$3" == "--no-prebuild" ] ; then
15     DISABLE_PREBUILD="1"
16     fi
17 william 103 if [ "$4" == "--no-cleanup" ] ; then
18     DISABLE_CLEANUP="1"
19     fi
20 william 100
21 william 92 # 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 william 95 echo -e "\\tPCSX2 VERSION: $VSC_BUILD_VERSION_UPSTREAM"
29     echo -e "\\tPCSX2 LOCAL VERSION: $VSC_BUILD_VERSION_LOCAL"
30 william 92 echo
31     echo "---------------------------------------------------------------------------------------"
32    
33     echo
34     echo "PERFORMING AUTOBUILD:"
35    
36 william 95
37    
38 william 96 # call auto prebuild
39 william 101 if [ "$DISABLE_PREBUILD" == "0" ] ; then
40 william 102 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 william 101 else
48     echo "PREBUILD HAS BEEN DISABLED..."
49 william 103 cd "$PCSX2_BUILD_TMP"
50     find -name *.pch -exec rm -f {} \;
51 william 101 echo
52 william 98 fi
53 william 92
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 william 103 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 william 92
83     echo
84     echo "AUTOBUILD COMPLETE..."
85     # perform auto tagging
86 william 105 if [ "$DISABLE_AUTO_BRANCH" == "0" ] ; then
87 william 106 # Always force auto branch update after building
88     "$downstream_export_location/auto_branch_latest_upstream.sh" --force-update
89 william 95 else
90 william 105 echo "AUTO BUILD BRANCH HAS BEEN DISABLED ... not calling auto_branch_latest_upstream.sh --> to enable do not use --no-auto-branch"
91 william 95 fi
92 william 92 else
93    
94     # CLEANUP
95     echo "PERFORMING CLEANUP"
96 william 103
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 william 92 echo
106     echo "BUILD FAILED..."
107     echo
108     echo "AUTOBUILD FAILED..."
109     fi

  ViewVC Help
Powered by ViewVC 1.1.22