/[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 101 by william, Thu Sep 9 18:08:52 2010 UTC revision 116 by william, Fri Sep 10 00:02:06 2010 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  . ./auto_defs.sh  #. ./auto_defs.sh
3    
4    
5    
6  if [ "$1" != "" ] ; then  if [ "$1" != "" ] ; then
7          export OVERRIDE_TMP_BUILD_PATH="$1"          export OVERRIDE_TMP_BUILD_PATH="$1"
# Line 8  fi Line 10  fi
10    
11  export DISABLE_AUTO_TAG="0"  export DISABLE_AUTO_TAG="0"
12    
13  if [ "$2" == "--no-auto-tag" ] ; then  if [ "$2" == "--no-auto-branch" ] ; then
14          DISABLE_AUTO_TAG="1"          DISABLE_AUTO_BRANCH="1"
15  fi  fi
16  if [ "$3" == "--no-prebuild" ] ; then  if [ "$3" == "--no-prebuild" ] ; then
17          DISABLE_PREBUILD="1"          DISABLE_PREBUILD="1"
18  fi  fi
19    if [ "$4" == "--no-cleanup" ] ; then
20            DISABLE_CLEANUP="1"
21    fi
22    
23  # output variables  # output variables
24  echo "---------------------------------------------------------------------------------------"  echo "---------------------------------------------------------------------------------------"
# Line 22  echo Line 27  echo
27  echo -e "\\tMSBUILD PATH: $MSBUILD"  echo -e "\\tMSBUILD PATH: $MSBUILD"
28  echo -e "\\tPCSX2 VCS BUILD PATH: $PCSX2_BUILD_TMP"  echo -e "\\tPCSX2 VCS BUILD PATH: $PCSX2_BUILD_TMP"
29  echo -e "\\tPCSX2 VCS PROJECT FILE: $VSC_PROJECT_FILE"  echo -e "\\tPCSX2 VCS PROJECT FILE: $VSC_PROJECT_FILE"
30  echo -e "\\tPCSX2 VERSION: $VSC_BUILD_VERSION_UPSTREAM"  echo -e "\\tPCSX2 VCS BUILD VERSION: $PCSX2_VERSION"
 echo -e "\\tPCSX2 LOCAL VERSION: $VSC_BUILD_VERSION_LOCAL"  
31  echo  echo
32  echo "---------------------------------------------------------------------------------------"  echo "---------------------------------------------------------------------------------------"
33    
# Line 34  echo "PERFORMING AUTOBUILD:" Line 38  echo "PERFORMING AUTOBUILD:"
38    
39  # call auto prebuild  # call auto prebuild
40  if [ "$DISABLE_PREBUILD" == "0" ] ; then  if [ "$DISABLE_PREBUILD" == "0" ] ; then
41  if [ "$AUTO_PREBUILD_DONE" == "" ] ; then          if [ "$AUTO_PREBUILD_DONE" == "" ] ; then
42          "$downstream_export_location/auto_prebuild_latest_upstream.sh"                  "$downstream_export_location/auto_prebuild_latest_upstream.sh"
43          if [ "$AUTO_PREBUILD_DONE" != "true" ] ; then                  if [ "$AUTO_PREBUILD_DONE" != "true" ] ; then
44                  echo "PREBUILD FAILED..."                          echo "PREBUILD FAILED..."
45                  exit 1                          exit 1
46          fi                        fi      
47            fi
48  else  else
49  echo "PREBUILD HAS BEEN DISABLED..."      echo "PREBUILD HAS BEEN DISABLED..."    
50    cd "$PCSX2_BUILD_TMP"
51    find -name *.pch -exec rm -f {} \;
52  echo      echo    
53  fi  fi
54    
# Line 59  if [ "$BUILD_SUCCESS" == 0 ] ; then Line 66  if [ "$BUILD_SUCCESS" == 0 ] ; then
66    
67          # START POST BUILD          # START POST BUILD
68          echo "PERFORMING POSTBUILD:"          echo "PERFORMING POSTBUILD:"
69          cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$BRANCH_LOCATION/$BRANCH_NAME/bin/"          cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$downstream_export_location/trunk/bin/"
70          echo "POSTBUILD COMPLETED..."          echo "POSTBUILD COMPLETED..."
71          # END POST BUILD          # END POST BUILD
72    
73          # CLEANUP          # CLEANUP
74          echo "PERFORMING CLEANUP"          echo "PERFORMING CLEANUP"
75          cd "$BUILD_TMP_DIR"          if [ "$DISABLE_CLEANUP" == "0" ] ; then
76          rm -Rf "$PCSX2_BUILD_TMP"                  cd "$BUILD_TMP_DIR"
77          rm -Rf *                  rm -Rf "$PCSX2_BUILD_TMP"
78          echo "CLEANUP COMPLETE..."                  rm -Rf *
79                    echo "CLEANUP COMPLETE..."
80            else
81            echo "CLEANUP DISABLED..."
82            fi
83    
84          echo          echo
85          echo "AUTOBUILD COMPLETE..."          echo "AUTOBUILD COMPLETE..."
86          # perform auto tagging          # perform auto tagging
87          if [ "$DISABLE_AUTO_TAG" == "0" ] ; then          if [ "$DISABLE_AUTO_BRANCH" == "0" ] ; then
88                  "$downstream_export_location/auto_tag_latest_upstream.sh"                  # Always force auto branch update after building
89                    "$downstream_export_location/auto_branch_latest_upstream.sh" --force-update
90          else          else
91                  echo "AUTO BUILD TAGGING HAS BEEN DISABLED ... not calling auto_tag_latest_upstream.sh --> to enable do not use --no-auto-tag"                  echo "AUTO BUILD BRANCH HAS BEEN DISABLED ... not calling auto_branch_latest_upstream.sh --> to enable do not use --no-auto-branch"
92          fi          fi
93  else  else
94    
95          # CLEANUP          # CLEANUP
96          echo "PERFORMING CLEANUP"          echo "PERFORMING CLEANUP"
97          cd "$BUILD_TMP_DIR"          
98          rm -Rf "$PCSX2_BUILD_TMP"          if [ "$DISABLE_CLEANUP" == "0" ] ; then
99          rm -Rf *                  cd "$BUILD_TMP_DIR"
100          echo "CLEANUP COMPLETE..."                  rm -Rf "$PCSX2_BUILD_TMP"
101                    rm -Rf *
102                    echo "CLEANUP COMPLETE..."
103            else
104            echo "CLEANUP DISABLED..."
105            fi
106          echo          echo
107          echo "BUILD FAILED..."          echo "BUILD FAILED..."
108          echo          echo

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

  ViewVC Help
Powered by ViewVC 1.1.22