/[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 95 - (hide annotations) (download) (as text)
Thu Sep 9 17:03:49 2010 UTC (9 years, 3 months ago) by william
File MIME type: application/x-sh
File size: 2360 byte(s)
updated auto_defs.sh to include the PCSX2 version that is being built (outputs to console) --> not finsihed
updated auto_build_latest_upstream.sh (to disable auto tagging by passing --no-auto-tag on the commandline, so that the build won't be auto tagged [if successful])
1 william 92 #!/bin/bash
2 william 94 . ./auto_defs.sh
3 william 92
4     # output variables
5     echo "---------------------------------------------------------------------------------------"
6     echo "AUTO BUILD CONFIG:"
7     echo
8     echo -e "\\tMSBUILD PATH: $MSBUILD"
9     echo -e "\\tPCSX2 VCS BUILD PATH: $PCSX2_BUILD_TMP"
10     echo -e "\\tPCSX2 VCS PROJECT FILE: $VSC_PROJECT_FILE"
11 william 95 echo -e "\\tPCSX2 VERSION: $VSC_BUILD_VERSION_UPSTREAM"
12     echo -e "\\tPCSX2 LOCAL VERSION: $VSC_BUILD_VERSION_LOCAL"
13 william 92 echo
14     echo "---------------------------------------------------------------------------------------"
15    
16     echo
17     echo "PERFORMING AUTOBUILD:"
18    
19 william 95 export DISABLE_AUTO_TAG="0"
20 william 92
21 william 95 if [ "$1" == "--no-auto-tag" ] ; then
22     DISABLE_AUTO_TAG="1"
23     fi
24    
25    
26 william 92 #clean up BUILD_TMP_DIR
27     cd "$BUILD_TMP_DIR"
28     rm -Rf *
29    
30     # Make Build TMP Path
31     mkdir -p "$PCSX2_BUILD_TMP"
32    
33     cd "$PCSX2_BUILD_TMP"
34    
35     echo
36     echo "PERFORMING PREBUILD:"
37     # export latest branch to tmp dir
38     echo -ne "\\tCOPYING: "$BRANCH_LOCATION/$BRANCH_NAME" to $PCSX2_BUILD_TMP ... "
39     #svn export --force "$BRANCH_LOCATION/$BRANCH_NAME" "$PCSX2_BUILD_TMP" 2>/dev/null
40     cp -Rf "$BRANCH_LOCATION/$BRANCH_NAME"/* "$PCSX2_BUILD_TMP" 2>/dev/null && echo "done." || echo "failed."
41    
42    
43     # remove all .pch files
44     find -name *.pch -exec rm -f {} \;
45     echo "PREBUILD COMPLETED..."
46     echo
47    
48     # START VISUAL STUDIO BUILD SUPPORT
49     export BUILD_SUCCESS=0
50     echo "PERFORMING BUILD:"
51     "$MSBUILD" /nologo /t:Clean,rebuild "$VSC_PROJECT_PATH_WIN32" && BUILD_SUCCESS=0 || BUILD_SUCCESS=1
52     # END VISUAL STUDIO BUILD SUPPORT
53    
54     #echo "BUILD SUCCESS: $BUILD_SUCCESS"
55    
56     if [ "$BUILD_SUCCESS" == 0 ] ; then
57     echo "BUILD COMPLETED..."
58     echo
59    
60     # START POST BUILD
61     echo "PERFORMING POSTBUILD:"
62     cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$BRANCH_LOCATION/$BRANCH_NAME/bin/"
63     echo "POSTBUILD COMPLETED..."
64     # END POST BUILD
65    
66     # CLEANUP
67     echo "PERFORMING CLEANUP"
68     cd "$BUILD_TMP_DIR"
69     rm -Rf "$PCSX2_BUILD_TMP"
70     rm -Rf *
71     echo "CLEANUP COMPLETE..."
72    
73     echo
74     echo "AUTOBUILD COMPLETE..."
75     # perform auto tagging
76 william 95 if [ "$DISABLE_AUTO_TAG" == "0" ] ; then
77     "$downstream_export_location/auto_tag_latest_upstream.sh"
78     else
79     echo "AUTO BUILD TAGGING HAS BEEN DISABLED ... not calling auto_tag_latest_upstream.sh --> to enable do not use --no-auto-tag"
80     fi
81 william 92 else
82    
83     # CLEANUP
84     echo "PERFORMING CLEANUP"
85     cd "$BUILD_TMP_DIR"
86     rm -Rf "$PCSX2_BUILD_TMP"
87     rm -Rf *
88     echo "CLEANUP COMPLETE..."
89     echo
90     echo "BUILD FAILED..."
91     echo
92     echo "AUTOBUILD FAILED..."
93     fi

  ViewVC Help
Powered by ViewVC 1.1.22