/[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 116 - (hide annotations) (download) (as text)
Fri Sep 10 00:02:06 2010 UTC (9 years, 3 months ago) by william
File MIME type: application/x-sh
File size: 2616 byte(s)
don't overwite $PCSX2_VERSION
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 100 export DISABLE_AUTO_TAG="0"
12    
13 william 105 if [ "$2" == "--no-auto-branch" ] ; then
14     DISABLE_AUTO_BRANCH="1"
15 william 100 fi
16 william 101 if [ "$3" == "--no-prebuild" ] ; then
17     DISABLE_PREBUILD="1"
18     fi
19 william 103 if [ "$4" == "--no-cleanup" ] ; then
20     DISABLE_CLEANUP="1"
21     fi
22 william 100
23 william 92 # 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 william 116 echo -e "\\tPCSX2 VCS BUILD VERSION: $PCSX2_VERSION"
31 william 92 echo
32     echo "---------------------------------------------------------------------------------------"
33    
34     echo
35     echo "PERFORMING AUTOBUILD:"
36    
37 william 95
38    
39 william 96 # call auto prebuild
40 william 101 if [ "$DISABLE_PREBUILD" == "0" ] ; then
41 william 102 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 william 101 else
49     echo "PREBUILD HAS BEEN DISABLED..."
50 william 103 cd "$PCSX2_BUILD_TMP"
51     find -name *.pch -exec rm -f {} \;
52 william 101 echo
53 william 98 fi
54 william 92
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 william 111 cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$downstream_export_location/trunk/bin/"
70 william 92 echo "POSTBUILD COMPLETED..."
71     # END POST BUILD
72    
73     # CLEANUP
74     echo "PERFORMING CLEANUP"
75 william 103 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 william 92
84     echo
85     echo "AUTOBUILD COMPLETE..."
86     # perform auto tagging
87 william 105 if [ "$DISABLE_AUTO_BRANCH" == "0" ] ; then
88 william 106 # Always force auto branch update after building
89     "$downstream_export_location/auto_branch_latest_upstream.sh" --force-update
90 william 95 else
91 william 105 echo "AUTO BUILD BRANCH HAS BEEN DISABLED ... not calling auto_branch_latest_upstream.sh --> to enable do not use --no-auto-branch"
92 william 95 fi
93 william 92 else
94    
95     # CLEANUP
96     echo "PERFORMING CLEANUP"
97 william 103
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 william 92 echo
107     echo "BUILD FAILED..."
108     echo
109     echo "AUTOBUILD FAILED..."
110     fi

  ViewVC Help
Powered by ViewVC 1.1.22