/[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 98 - (show annotations) (download) (as text)
Thu Sep 9 17:49:17 2010 UTC (9 years, 3 months ago) by william
File MIME type: application/x-sh
File size: 2128 byte(s)
fix double call of prebuild, can call auto_build.sh from auto_branch_latest_upstream.sh
1 #!/bin/bash
2 . ./auto_defs.sh
3
4 if [ "$1" != "" ] ; then
5 export OVERRIDE_TMP_BUILD_PATH="$1"
6 . ./auto_build_defs.sh
7 fi
8
9 # output variables
10 echo "---------------------------------------------------------------------------------------"
11 echo "AUTO BUILD CONFIG:"
12 echo
13 echo -e "\\tMSBUILD PATH: $MSBUILD"
14 echo -e "\\tPCSX2 VCS BUILD PATH: $PCSX2_BUILD_TMP"
15 echo -e "\\tPCSX2 VCS PROJECT FILE: $VSC_PROJECT_FILE"
16 echo -e "\\tPCSX2 VERSION: $VSC_BUILD_VERSION_UPSTREAM"
17 echo -e "\\tPCSX2 LOCAL VERSION: $VSC_BUILD_VERSION_LOCAL"
18 echo
19 echo "---------------------------------------------------------------------------------------"
20
21 echo
22 echo "PERFORMING AUTOBUILD:"
23
24 export DISABLE_AUTO_TAG="0"
25
26 if [ "$1" == "--no-auto-tag" ] ; then
27 DISABLE_AUTO_TAG="1"
28 fi
29
30
31 # call auto prebuild
32 if [ "$AUTO_PREBUILD_DONE" == "" ] ; then
33 "$downstream_export_location/auto_prebuild_latest_upstream.sh"
34 if [ "$AUTO_PREBUILD_DONE" != "true" ] ; then
35 echo "PREBUILD FAILED..."
36 exit 1
37 fi
38
39
40 fi
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 if [ "$DISABLE_AUTO_TAG" == "0" ] ; then
71 "$downstream_export_location/auto_tag_latest_upstream.sh"
72 else
73 echo "AUTO BUILD TAGGING HAS BEEN DISABLED ... not calling auto_tag_latest_upstream.sh --> to enable do not use --no-auto-tag"
74 fi
75 else
76
77 # CLEANUP
78 echo "PERFORMING CLEANUP"
79 cd "$BUILD_TMP_DIR"
80 rm -Rf "$PCSX2_BUILD_TMP"
81 rm -Rf *
82 echo "CLEANUP COMPLETE..."
83 echo
84 echo "BUILD FAILED..."
85 echo
86 echo "AUTOBUILD FAILED..."
87 fi

  ViewVC Help
Powered by ViewVC 1.1.22