/[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 109 by william, Thu Sep 9 21:12:48 2010 UTC revision 134 by william, Fri Sep 10 13:19:26 2010 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  #. ./auto_defs.sh  . ./auto_defs.sh
3    
4    
5    
# Line 8  if [ "$1" != "" ] ; then Line 8  if [ "$1" != "" ] ; then
8          . ./auto_build_defs.sh          . ./auto_build_defs.sh
9  fi  fi
10    
11  #UPDATE PCSX2 VERSION  export DISABLE_AUTO_BRANCH="0"
12  PCSX2_VERSION=`cat "$$PCSX2_BUILD_TMP/bin/pcsx2-version.txt"`  export DISABLE_PREBUILD="0"
13    export DISABLE_CLEANUP="0"
 export DISABLE_AUTO_TAG="0"  
14    
15  if [ "$2" == "--no-auto-branch" ] ; then  if [ "$2" == "--no-auto-branch" ] ; then
16          DISABLE_AUTO_BRANCH="1"          DISABLE_AUTO_BRANCH="1"
# Line 27  fi Line 26  fi
26  echo "---------------------------------------------------------------------------------------"  echo "---------------------------------------------------------------------------------------"
27  echo "AUTO BUILD CONFIG:"  echo "AUTO BUILD CONFIG:"
28  echo  echo
 echo -e "\\tMSBUILD PATH: $MSBUILD"  
29  echo -e "\\tPCSX2 VCS BUILD PATH: $PCSX2_BUILD_TMP"  echo -e "\\tPCSX2 VCS BUILD PATH: $PCSX2_BUILD_TMP"
30  echo -e "\\tPCSX2 VCS PROJECT FILE: $VSC_PROJECT_FILE"  echo -e "\\tPCSX2 VCS PROJECT FILE: $VSC_PROJECT_FILE"
31  echo -e "\\tPCSX2 UPSTREAM VERSION: $VSC_BUILD_VERSION_UPSTREAM"  echo -e "\\tPCSX2 VCS BUILD VERSION: $PCSX2_VERSION"
32  echo -e "\\tPCSX2 LOCAL TRUNK VERSION: $PCSX2_VERSION"  echo
33  echo -e "\\tPCSX2 LOCAL VERSION: $VSC_BUILD_VERSION_LOCAL"  echo -e "\\tMSBUILD PATH: $VSC_MSBUILD"
34    echo -e "\\tMSBUILD OPTIONS: $VSC_MSBUILD_OPTIONS"
35  echo  echo
36  echo "---------------------------------------------------------------------------------------"  echo "---------------------------------------------------------------------------------------"
37    
# Line 51  if [ "$DISABLE_PREBUILD" == "0" ] ; then Line 50  if [ "$DISABLE_PREBUILD" == "0" ] ; then
50                  fi                        fi      
51          fi          fi
52  else  else
53  echo "PREBUILD HAS BEEN DISABLED..."              echo "PREBUILD HAS BEEN DISABLED ... to enable do not use --no-prebuild"        
54  cd "$PCSX2_BUILD_TMP"          cd "$PCSX2_BUILD_TMP"
55  find -name *.pch -exec rm -f {} \;          find -name *.pch -exec rm -f {} \;
56  echo              echo    
57  fi  fi
58    
59    # re-generate pcsx2-version.txt
60    echo "$PCSX2_VERSION" > "$PCSX2_BUILD_TMP/bin/pcsx2-version.txt"
61    
62  # START VISUAL STUDIO BUILD SUPPORT  # START VISUAL STUDIO BUILD SUPPORT
63  export BUILD_SUCCESS=0  export BUILD_SUCCESS=0
64  echo "PERFORMING BUILD:"  echo "PERFORMING BUILD:"
65  "$MSBUILD" /nologo /t:Clean,rebuild "$VSC_PROJECT_PATH_WIN32" && BUILD_SUCCESS=0 || BUILD_SUCCESS=1  
66    # remove log files
67    rm -f "$downstream_export_location/"$VSC_MSBUILD_LOG_FILE_PREFIX*.log
68    "$VSC_MSBUILD" $VSC_MSBUILD_OPTIONS "$VSC_PROJECT_PATH_WIN32" && BUILD_SUCCESS=0 || BUILD_SUCCESS=1
69    
70  # END VISUAL STUDIO BUILD SUPPORT  # END VISUAL STUDIO BUILD SUPPORT
71    
72  #echo "BUILD SUCCESS: $BUILD_SUCCESS"  #echo "BUILD SUCCESS: $BUILD_SUCCESS"
# Line 71  if [ "$BUILD_SUCCESS" == 0 ] ; then Line 77  if [ "$BUILD_SUCCESS" == 0 ] ; then
77    
78          # START POST BUILD          # START POST BUILD
79          echo "PERFORMING POSTBUILD:"          echo "PERFORMING POSTBUILD:"
80          cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$BRANCH_LOCATION/$BRANCH_NAME/bin/"          echo -e "\\tCOPYING $PCSX2_BUILD_TMP/bin/* $downstream_export_location/trunk/bin/ ... {}"
81            cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$downstream_export_location/trunk/bin/" >/dev/null 2>/dev/null
82          echo "POSTBUILD COMPLETED..."          echo "POSTBUILD COMPLETED..."
83          # END POST BUILD          # END POST BUILD
84    
85          # CLEANUP          # CLEANUP
86          echo "PERFORMING CLEANUP"          echo "PERFORMING CLEANUP"
87          if [ "$DISABLE_CLEANUP" == "0" ] ; then          if [ "$DISABLE_CLEANUP" == "0" ] ; then
88                    echo -e "\\tCLEANING $PCSX2_BUILD_TMP/bin/ ... {}"
89                  cd "$BUILD_TMP_DIR"                  cd "$BUILD_TMP_DIR"
90                  rm -Rf "$PCSX2_BUILD_TMP"                  rm -Rf "$PCSX2_BUILD_TMP" >/dev/null 2>/dev/null
91                  rm -Rf *                  #rm -Rf *
92                  echo "CLEANUP COMPLETE..."                  echo "CLEANUP COMPLETE..."
93          else          else
94          echo "CLEANUP DISABLED..."                  echo "CLEANUP HAS BEEN DISABLED ... to enable do not use --no-cleaup"
95          fi          fi
96    
97          echo          echo
# Line 101  else Line 109  else
109          echo "PERFORMING CLEANUP"          echo "PERFORMING CLEANUP"
110                    
111          if [ "$DISABLE_CLEANUP" == "0" ] ; then          if [ "$DISABLE_CLEANUP" == "0" ] ; then
112                    echo -e "\\tCLEANING $PCSX2_BUILD_TMP/bin/ ... {}"
113                  cd "$BUILD_TMP_DIR"                  cd "$BUILD_TMP_DIR"
114                  rm -Rf "$PCSX2_BUILD_TMP"                  rm -Rf "$PCSX2_BUILD_TMP" >/dev/null 2>/dev/null
115                  rm -Rf *                  #rm -Rf *
116                  echo "CLEANUP COMPLETE..."                  echo "CLEANUP COMPLETE..."
117          else          else
118          echo "CLEANUP DISABLED..."                  echo "CLEANUP HAS BEEN DISABLED ... to enable do not use --no-cleaup"
119          fi          fi
120          echo          echo
121          echo "BUILD FAILED..."          echo "BUILD FAILED..."

Legend:
Removed from v.109  
changed lines
  Added in v.134

  ViewVC Help
Powered by ViewVC 1.1.22