/[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 94 by william, Thu Sep 9 16:57:05 2010 UTC revision 100 by william, Thu Sep 9 18:04:56 2010 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  . ./auto_defs.sh  . ./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  # output variables
16  echo "---------------------------------------------------------------------------------------"  echo "---------------------------------------------------------------------------------------"
17  echo "AUTO BUILD CONFIG:"  echo "AUTO BUILD CONFIG:"
# Line 8  echo Line 19  echo
19  echo -e "\\tMSBUILD PATH: $MSBUILD"  echo -e "\\tMSBUILD PATH: $MSBUILD"
20  echo -e "\\tPCSX2 VCS BUILD PATH: $PCSX2_BUILD_TMP"  echo -e "\\tPCSX2 VCS BUILD PATH: $PCSX2_BUILD_TMP"
21  echo -e "\\tPCSX2 VCS PROJECT FILE: $VSC_PROJECT_FILE"  echo -e "\\tPCSX2 VCS PROJECT FILE: $VSC_PROJECT_FILE"
22  echo -e "\\tPCSX2 VERSION: "  echo -e "\\tPCSX2 VERSION: $VSC_BUILD_VERSION_UPSTREAM"
23  echo -e "\\tPCSX2 LOCAL VERSION: "  echo -e "\\tPCSX2 LOCAL VERSION: $VSC_BUILD_VERSION_LOCAL"
24  echo  echo
25  echo "---------------------------------------------------------------------------------------"  echo "---------------------------------------------------------------------------------------"
26    
27  echo  echo
28  echo "PERFORMING AUTOBUILD:"  echo "PERFORMING AUTOBUILD:"
29    
30            
31    
32  #clean up BUILD_TMP_DIR  # call auto prebuild
33  cd "$BUILD_TMP_DIR"  if [ "$AUTO_PREBUILD_DONE" == "" ] ; then
34  rm -Rf *          "$downstream_export_location/auto_prebuild_latest_upstream.sh"
35            if [ "$AUTO_PREBUILD_DONE" != "true" ] ; then
36  # Make Build TMP Path                  echo "PREBUILD FAILED..."
37  mkdir -p "$PCSX2_BUILD_TMP"                  exit 1
38            fi      
39  cd "$PCSX2_BUILD_TMP"          
40            
41  echo  fi
 echo "PERFORMING PREBUILD:"  
 # export latest branch to tmp dir  
 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  
42    
43  # START VISUAL STUDIO BUILD SUPPORT  # START VISUAL STUDIO BUILD SUPPORT
44  export BUILD_SUCCESS=0  export BUILD_SUCCESS=0
# Line 67  if [ "$BUILD_SUCCESS" == 0 ] ; then Line 68  if [ "$BUILD_SUCCESS" == 0 ] ; then
68          echo          echo
69          echo "AUTOBUILD COMPLETE..."          echo "AUTOBUILD COMPLETE..."
70          # perform auto tagging          # perform auto tagging
71          "$downstream_export_location/auto_tag_latest_upstream.sh"          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  else
77    
78          # CLEANUP          # CLEANUP

Legend:
Removed from v.94  
changed lines
  Added in v.100

  ViewVC Help
Powered by ViewVC 1.1.22