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

  ViewVC Help
Powered by ViewVC 1.1.22