/[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 94 - (show annotations) (download) (as text)
Thu Sep 9 16:57:05 2010 UTC (9 years, 3 months ago) by william
File MIME type: application/x-sh
File size: 2019 byte(s)
Moved all Auto script definitions into auto_defs.sh.
Updated all auto scripts to call . ./auto_defs.sh
1 #!/bin/bash
2 . ./auto_defs.sh
3
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 echo -e "\\tPCSX2 VERSION: "
12 echo -e "\\tPCSX2 LOCAL VERSION: "
13 echo
14 echo "---------------------------------------------------------------------------------------"
15
16 echo
17 echo "PERFORMING AUTOBUILD:"
18
19
20 #clean up BUILD_TMP_DIR
21 cd "$BUILD_TMP_DIR"
22 rm -Rf *
23
24 # Make Build TMP Path
25 mkdir -p "$PCSX2_BUILD_TMP"
26
27 cd "$PCSX2_BUILD_TMP"
28
29 echo
30 echo "PERFORMING PREBUILD:"
31 # export latest branch to tmp dir
32 echo -ne "\\tCOPYING: "$BRANCH_LOCATION/$BRANCH_NAME" to $PCSX2_BUILD_TMP ... "
33 #svn export --force "$BRANCH_LOCATION/$BRANCH_NAME" "$PCSX2_BUILD_TMP" 2>/dev/null
34 cp -Rf "$BRANCH_LOCATION/$BRANCH_NAME"/* "$PCSX2_BUILD_TMP" 2>/dev/null && echo "done." || echo "failed."
35
36
37 # remove all .pch files
38 find -name *.pch -exec rm -f {} \;
39 echo "PREBUILD COMPLETED..."
40 echo
41
42 # START VISUAL STUDIO BUILD SUPPORT
43 export BUILD_SUCCESS=0
44 echo "PERFORMING BUILD:"
45 "$MSBUILD" /nologo /t:Clean,rebuild "$VSC_PROJECT_PATH_WIN32" && BUILD_SUCCESS=0 || BUILD_SUCCESS=1
46 # END VISUAL STUDIO BUILD SUPPORT
47
48 #echo "BUILD SUCCESS: $BUILD_SUCCESS"
49
50 if [ "$BUILD_SUCCESS" == 0 ] ; then
51 echo "BUILD COMPLETED..."
52 echo
53
54 # START POST BUILD
55 echo "PERFORMING POSTBUILD:"
56 cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$BRANCH_LOCATION/$BRANCH_NAME/bin/"
57 echo "POSTBUILD COMPLETED..."
58 # END POST BUILD
59
60 # CLEANUP
61 echo "PERFORMING CLEANUP"
62 cd "$BUILD_TMP_DIR"
63 rm -Rf "$PCSX2_BUILD_TMP"
64 rm -Rf *
65 echo "CLEANUP COMPLETE..."
66
67 echo
68 echo "AUTOBUILD COMPLETE..."
69 # perform auto tagging
70 "$downstream_export_location/auto_tag_latest_upstream.sh"
71 else
72
73 # CLEANUP
74 echo "PERFORMING CLEANUP"
75 cd "$BUILD_TMP_DIR"
76 rm -Rf "$PCSX2_BUILD_TMP"
77 rm -Rf *
78 echo "CLEANUP COMPLETE..."
79 echo
80 echo "BUILD FAILED..."
81 echo
82 echo "AUTOBUILD FAILED..."
83 fi

  ViewVC Help
Powered by ViewVC 1.1.22