/[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 100 - (show annotations) (download) (as text)
Thu Sep 9 18:04:56 2010 UTC (9 years, 3 months ago) by william
File MIME type: application/x-sh
File size: 2129 byte(s)
fix override of --no-auto-tag by OVERRIDE_TMP_BUILD_PATH, move --no-auto-tag to second parameter (i.e. $2)
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 export DISABLE_AUTO_TAG="0"
10
11 if [ "$2" == "--no-auto-tag" ] ; then
12 DISABLE_AUTO_TAG="1"
13 fi
14
15 # output variables
16 echo "---------------------------------------------------------------------------------------"
17 echo "AUTO BUILD CONFIG:"
18 echo
19 echo -e "\\tMSBUILD PATH: $MSBUILD"
20 echo -e "\\tPCSX2 VCS BUILD PATH: $PCSX2_BUILD_TMP"
21 echo -e "\\tPCSX2 VCS PROJECT FILE: $VSC_PROJECT_FILE"
22 echo -e "\\tPCSX2 VERSION: $VSC_BUILD_VERSION_UPSTREAM"
23 echo -e "\\tPCSX2 LOCAL VERSION: $VSC_BUILD_VERSION_LOCAL"
24 echo
25 echo "---------------------------------------------------------------------------------------"
26
27 echo
28 echo "PERFORMING AUTOBUILD:"
29
30
31
32 # call auto prebuild
33 if [ "$AUTO_PREBUILD_DONE" == "" ] ; then
34 "$downstream_export_location/auto_prebuild_latest_upstream.sh"
35 if [ "$AUTO_PREBUILD_DONE" != "true" ] ; then
36 echo "PREBUILD FAILED..."
37 exit 1
38 fi
39
40
41 fi
42
43 # START VISUAL STUDIO BUILD SUPPORT
44 export BUILD_SUCCESS=0
45 echo "PERFORMING BUILD:"
46 "$MSBUILD" /nologo /t:Clean,rebuild "$VSC_PROJECT_PATH_WIN32" && BUILD_SUCCESS=0 || BUILD_SUCCESS=1
47 # END VISUAL STUDIO BUILD SUPPORT
48
49 #echo "BUILD SUCCESS: $BUILD_SUCCESS"
50
51 if [ "$BUILD_SUCCESS" == 0 ] ; then
52 echo "BUILD COMPLETED..."
53 echo
54
55 # START POST BUILD
56 echo "PERFORMING POSTBUILD:"
57 cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$BRANCH_LOCATION/$BRANCH_NAME/bin/"
58 echo "POSTBUILD COMPLETED..."
59 # END POST BUILD
60
61 # CLEANUP
62 echo "PERFORMING CLEANUP"
63 cd "$BUILD_TMP_DIR"
64 rm -Rf "$PCSX2_BUILD_TMP"
65 rm -Rf *
66 echo "CLEANUP COMPLETE..."
67
68 echo
69 echo "AUTOBUILD COMPLETE..."
70 # perform auto tagging
71 if [ "$DISABLE_AUTO_TAG" == "0" ] ; then
72 "$downstream_export_location/auto_tag_latest_upstream.sh"
73 else
74 echo "AUTO BUILD TAGGING HAS BEEN DISABLED ... not calling auto_tag_latest_upstream.sh --> to enable do not use --no-auto-tag"
75 fi
76 else
77
78 # CLEANUP
79 echo "PERFORMING CLEANUP"
80 cd "$BUILD_TMP_DIR"
81 rm -Rf "$PCSX2_BUILD_TMP"
82 rm -Rf *
83 echo "CLEANUP COMPLETE..."
84 echo
85 echo "BUILD FAILED..."
86 echo
87 echo "AUTOBUILD FAILED..."
88 fi

  ViewVC Help
Powered by ViewVC 1.1.22