/[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 119 - (show annotations) (download) (as text)
Fri Sep 10 01:39:06 2010 UTC (9 years, 3 months ago) by william
File MIME type: application/x-sh
File size: 3169 byte(s)
enable logging in auto_build_latest_upstream.sh, among other updates/fixes
minor updates/fixes in other scripts
1 #!/bin/bash
2 . ./auto_defs.sh
3
4
5
6 if [ "$1" != "" ] ; then
7 export OVERRIDE_TMP_BUILD_PATH="$1"
8 . ./auto_build_defs.sh
9 fi
10
11 export DISABLE_AUTO_TAG="0"
12
13 if [ "$2" == "--no-auto-branch" ] ; then
14 DISABLE_AUTO_BRANCH="1"
15 fi
16 if [ "$3" == "--no-prebuild" ] ; then
17 DISABLE_PREBUILD="1"
18 fi
19 if [ "$4" == "--no-cleanup" ] ; then
20 DISABLE_CLEANUP="1"
21 fi
22
23 # output variables
24 echo "---------------------------------------------------------------------------------------"
25 echo "AUTO BUILD CONFIG:"
26 echo
27 echo -e "\\tPCSX2 VCS BUILD PATH: $PCSX2_BUILD_TMP"
28 echo -e "\\tPCSX2 VCS PROJECT FILE: $VSC_PROJECT_FILE"
29 echo -e "\\tPCSX2 VCS BUILD VERSION: $PCSX2_VERSION"
30 echo
31 echo -e "\\tMSBUILD PATH: $VSC_MSBUILD"
32 echo -e "\\tMSBUILD OPTIONS: $VSC_MSBUILD_OPTIONS"
33 echo
34 echo "---------------------------------------------------------------------------------------"
35
36 echo
37 echo "PERFORMING AUTOBUILD:"
38
39
40
41 # call auto prebuild
42 if [ "$DISABLE_PREBUILD" == "0" ] ; then
43 if [ "$AUTO_PREBUILD_DONE" == "" ] ; then
44 "$downstream_export_location/auto_prebuild_latest_upstream.sh"
45 if [ "$AUTO_PREBUILD_DONE" != "true" ] ; then
46 echo "PREBUILD FAILED..."
47 exit 1
48 fi
49 fi
50 else
51 echo "PREBUILD HAS BEEN DISABLED ... to enable do not use --no-prebuild"
52 cd "$PCSX2_BUILD_TMP"
53 find -name *.pch -exec rm -f {} \;
54 echo
55 fi
56
57 # re-generate pcsx2-version.txt
58 echo "$PCSX2_VERSION" > "$PCSX2_BUILD_TMP/bin/pcsx2-version.txt"
59
60 # START VISUAL STUDIO BUILD SUPPORT
61 export BUILD_SUCCESS=0
62 echo "PERFORMING BUILD:"
63 "$VSC_MSBUILD" $VSC_MSBUILD_OPTIONS "$VSC_PROJECT_PATH_WIN32" && BUILD_SUCCESS=0 || BUILD_SUCCESS=1
64 # END VISUAL STUDIO BUILD SUPPORT
65
66 #echo "BUILD SUCCESS: $BUILD_SUCCESS"
67
68 if [ "$BUILD_SUCCESS" == 0 ] ; then
69 echo "BUILD COMPLETED..."
70 echo
71
72 # START POST BUILD
73 echo "PERFORMING POSTBUILD:"
74 echo -e "\\tCOPYING $PCSX2_BUILD_TMP/bin/* $downstream_export_location/trunk/bin/ ... {}"
75 cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$downstream_export_location/trunk/bin/" >/dev/null 2>/dev/null
76 echo "POSTBUILD COMPLETED..."
77 # END POST BUILD
78
79 # CLEANUP
80 echo "PERFORMING CLEANUP"
81 if [ "$DISABLE_CLEANUP" == "0" ] ; then
82 echo -e "\\tCLEANING $PCSX2_BUILD_TMP/bin/ ... {}"
83 cd "$BUILD_TMP_DIR"
84 rm -Rf "$PCSX2_BUILD_TMP" >/dev/null 2>/dev/null
85 #rm -Rf *
86 echo "CLEANUP COMPLETE..."
87 else
88 echo "CLEANUP HAS BEEN DISABLED ... to enable do not use --no-cleaup"
89 fi
90
91 echo
92 echo "AUTOBUILD COMPLETE..."
93 # perform auto tagging
94 if [ "$DISABLE_AUTO_BRANCH" == "0" ] ; then
95 # Always force auto branch update after building
96 "$downstream_export_location/auto_branch_latest_upstream.sh" --force-update
97 else
98 echo "AUTO BUILD BRANCH HAS BEEN DISABLED ... not calling auto_branch_latest_upstream.sh --> to enable do not use --no-auto-branch"
99 fi
100 else
101
102 # CLEANUP
103 echo "PERFORMING CLEANUP"
104
105 if [ "$DISABLE_CLEANUP" == "0" ] ; then
106 echo -e "\\tCLEANING $PCSX2_BUILD_TMP/bin/ ... {}"
107 cd "$BUILD_TMP_DIR"
108 rm -Rf "$PCSX2_BUILD_TMP" >/dev/null 2>/dev/null
109 #rm -Rf *
110 echo "CLEANUP COMPLETE..."
111 else
112 echo "CLEANUP HAS BEEN DISABLED ... to enable do not use --no-cleaup"
113 fi
114 echo
115 echo "BUILD FAILED..."
116 echo
117 echo "AUTOBUILD FAILED..."
118 fi

  ViewVC Help
Powered by ViewVC 1.1.22