/[pcsx2_0.9.7]/auto_build_latest_upstream.sh
ViewVC logotype

Annotation of /auto_build_latest_upstream.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 97 - (hide annotations) (download) (as text)
Thu Sep 9 17:42:06 2010 UTC (9 years, 3 months ago) by william
File MIME type: application/x-sh
File size: 1989 byte(s)
allow overriding of temporary build path.

scripts puts all temporary builds under the /tmp/ folder (using a dynamically generated folder under this)
pass the folder to use as the override like this: ** note do not prefix path with a '/'
./auto_build.sh "path/to/folder"     -> (calls prebuild and build with path)
-- to prebuild or build a different folder under the /tmp/ dir
./auto_prebuild_latest_upstream.sh "path/to/folder"
./auto_build_latest_upstream.sh "path/to/folder"

1 william 92 #!/bin/bash
2 william 94 . ./auto_defs.sh
3 william 92
4 william 97 if [ "$1" != "" ] ; then
5     export OVERRIDE_TMP_BUILD_PATH="$1"
6     . ./auto_build_defs.sh
7     fi
8    
9 william 92 # 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 william 95 echo -e "\\tPCSX2 VERSION: $VSC_BUILD_VERSION_UPSTREAM"
17     echo -e "\\tPCSX2 LOCAL VERSION: $VSC_BUILD_VERSION_LOCAL"
18 william 92 echo
19     echo "---------------------------------------------------------------------------------------"
20    
21     echo
22     echo "PERFORMING AUTOBUILD:"
23    
24 william 95 export DISABLE_AUTO_TAG="0"
25 william 92
26 william 95 if [ "$1" == "--no-auto-tag" ] ; then
27     DISABLE_AUTO_TAG="1"
28     fi
29    
30    
31 william 96 # call auto prebuild
32     "$downstream_export_location/auto_prebuild_latest_upstream.sh"
33 william 92
34     # START VISUAL STUDIO BUILD SUPPORT
35     export BUILD_SUCCESS=0
36     echo "PERFORMING BUILD:"
37     "$MSBUILD" /nologo /t:Clean,rebuild "$VSC_PROJECT_PATH_WIN32" && BUILD_SUCCESS=0 || BUILD_SUCCESS=1
38     # END VISUAL STUDIO BUILD SUPPORT
39    
40     #echo "BUILD SUCCESS: $BUILD_SUCCESS"
41    
42     if [ "$BUILD_SUCCESS" == 0 ] ; then
43     echo "BUILD COMPLETED..."
44     echo
45    
46     # START POST BUILD
47     echo "PERFORMING POSTBUILD:"
48     cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$BRANCH_LOCATION/$BRANCH_NAME/bin/"
49     echo "POSTBUILD COMPLETED..."
50     # END POST BUILD
51    
52     # CLEANUP
53     echo "PERFORMING CLEANUP"
54     cd "$BUILD_TMP_DIR"
55     rm -Rf "$PCSX2_BUILD_TMP"
56     rm -Rf *
57     echo "CLEANUP COMPLETE..."
58    
59     echo
60     echo "AUTOBUILD COMPLETE..."
61     # perform auto tagging
62 william 95 if [ "$DISABLE_AUTO_TAG" == "0" ] ; then
63     "$downstream_export_location/auto_tag_latest_upstream.sh"
64     else
65     echo "AUTO BUILD TAGGING HAS BEEN DISABLED ... not calling auto_tag_latest_upstream.sh --> to enable do not use --no-auto-tag"
66     fi
67 william 92 else
68    
69     # CLEANUP
70     echo "PERFORMING CLEANUP"
71     cd "$BUILD_TMP_DIR"
72     rm -Rf "$PCSX2_BUILD_TMP"
73     rm -Rf *
74     echo "CLEANUP COMPLETE..."
75     echo
76     echo "BUILD FAILED..."
77     echo
78     echo "AUTOBUILD FAILED..."
79     fi

  ViewVC Help
Powered by ViewVC 1.1.22