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

Diff of /auto_build_latest_upstream.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 92 by william, Thu Sep 9 16:33:43 2010 UTC revision 101 by william, Thu Sep 9 18:08:52 2010 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # dummy values -- comment these out after testing  . ./auto_defs.sh
 #export SVNROOT_URL="https://svn.netsolutions.dnsalias.com/websvn/ps2/pcsx2/pcsx2_0.9.7"  
 #export downstream_export_location="`pwd`"  
 #export upstream_revision="3738"  
 #export SVNTMP="svntmp"  
 #export BRANCH_DIR="branch"  
 #export BRANCH_CONFIGURATION="debug"  
 #export BRANCH_LINE="0.X"  
 #export BRANCH_NAME="latest"  
 #export BRANCH_URL="$SVNROOT_URL/$BRANCH_DIR/$BRANCH_CONFIGURATION/$BRANCH_LINE/$BRANCH_NAME"  
 #export BRANCH_LOCATION="$downstream_export_location/$BRANCH_DIR/$BRANCH_CONFIGURATION/$BRANCH_LINE"  
 # end dummy  
   
 export BUILD_TMP_SEED=`date +%s`  
 export BUILD_TMP_DIR="/tmp"  
 export PCSX2_BUILD_TMP="$BUILD_TMP_DIR/pcsx2_build_stageing_$BUILD_TMP_SEED"  
   
   
 export DotNetFrameworkVersion="3.5"  
   
 export MSBUILD="/cygdrive/C/Windows/Microsoft.NET/Framework/v$DotNetFrameworkVersion/MSBuild.exe"  
   
 export VSC_PROJECT_ROOT="$PCSX2_BUILD_TMP"  
 export VSC_PROJECT_FILE="pcsx2_suite_2008.sln"  
   
 export VSC_PROJECT_PATH="$VSC_PROJECT_ROOT/$VSC_PROJECT_FILE"  
 export VSC_PROJECT_PATH_WIN32=`cyg2winpath $VSC_PROJECT_PATH`  
   
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  # output variables
19  echo "---------------------------------------------------------------------------------------"  echo "---------------------------------------------------------------------------------------"
# Line 36  echo Line 22  echo
22  echo -e "\\tMSBUILD PATH: $MSBUILD"  echo -e "\\tMSBUILD PATH: $MSBUILD"
23  echo -e "\\tPCSX2 VCS BUILD PATH: $PCSX2_BUILD_TMP"  echo -e "\\tPCSX2 VCS BUILD PATH: $PCSX2_BUILD_TMP"
24  echo -e "\\tPCSX2 VCS PROJECT FILE: $VSC_PROJECT_FILE"  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  echo
28  echo "---------------------------------------------------------------------------------------"  echo "---------------------------------------------------------------------------------------"
29    
30  echo  echo
31  echo "PERFORMING AUTOBUILD:"  echo "PERFORMING AUTOBUILD:"
32    
33            
34    
35  #clean up BUILD_TMP_DIR  # call auto prebuild
36  cd "$BUILD_TMP_DIR"  if [ "$DISABLE_PREBUILD" == "0" ] ; then
37  rm -Rf *  if [ "$AUTO_PREBUILD_DONE" == "" ] ; then
38            "$downstream_export_location/auto_prebuild_latest_upstream.sh"
39  # Make Build TMP Path          if [ "$AUTO_PREBUILD_DONE" != "true" ] ; then
40  mkdir -p "$PCSX2_BUILD_TMP"                  echo "PREBUILD FAILED..."
41                    exit 1
42  cd "$PCSX2_BUILD_TMP"          fi      
43    else
44  echo  echo "PREBUILD HAS BEEN DISABLED..."    
45  echo "PERFORMING PREBUILD:"  echo    
46  # export latest branch to tmp dir  fi
 echo -ne "\\tCOPYING: "$BRANCH_LOCATION/$BRANCH_NAME" to $PCSX2_BUILD_TMP ... "  
 #svn export --force "$BRANCH_LOCATION/$BRANCH_NAME" "$PCSX2_BUILD_TMP" 2>/dev/null  
 cp -Rf "$BRANCH_LOCATION/$BRANCH_NAME"/* "$PCSX2_BUILD_TMP" 2>/dev/null && echo "done." || echo "failed."  
   
   
 # remove all .pch files  
 find -name *.pch -exec rm -f {} \;  
 echo "PREBUILD COMPLETED..."  
 echo  
47    
48  # START VISUAL STUDIO BUILD SUPPORT  # START VISUAL STUDIO BUILD SUPPORT
49  export BUILD_SUCCESS=0  export BUILD_SUCCESS=0
# Line 93  if [ "$BUILD_SUCCESS" == 0 ] ; then Line 73  if [ "$BUILD_SUCCESS" == 0 ] ; then
73          echo          echo
74          echo "AUTOBUILD COMPLETE..."          echo "AUTOBUILD COMPLETE..."
75          # perform auto tagging          # perform auto tagging
76          "$downstream_export_location/auto_tag_latest_upstream.sh"          if [ "$DISABLE_AUTO_TAG" == "0" ] ; then
77                    "$downstream_export_location/auto_tag_latest_upstream.sh"
78            else
79                    echo "AUTO BUILD TAGGING HAS BEEN DISABLED ... not calling auto_tag_latest_upstream.sh --> to enable do not use --no-auto-tag"
80            fi
81  else  else
82    
83          # CLEANUP          # CLEANUP

Legend:
Removed from v.92  
changed lines
  Added in v.101

  ViewVC Help
Powered by ViewVC 1.1.22