/[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 116 by william, Fri Sep 10 00:02:06 2010 UTC revision 119 by william, Fri Sep 10 01:39:06 2010 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  #. ./auto_defs.sh  . ./auto_defs.sh
3    
4    
5    
# Line 24  fi Line 24  fi
24  echo "---------------------------------------------------------------------------------------"  echo "---------------------------------------------------------------------------------------"
25  echo "AUTO BUILD CONFIG:"  echo "AUTO BUILD CONFIG:"
26  echo  echo
 echo -e "\\tMSBUILD PATH: $MSBUILD"  
27  echo -e "\\tPCSX2 VCS BUILD PATH: $PCSX2_BUILD_TMP"  echo -e "\\tPCSX2 VCS BUILD PATH: $PCSX2_BUILD_TMP"
28  echo -e "\\tPCSX2 VCS PROJECT FILE: $VSC_PROJECT_FILE"  echo -e "\\tPCSX2 VCS PROJECT FILE: $VSC_PROJECT_FILE"
29  echo -e "\\tPCSX2 VCS BUILD VERSION: $PCSX2_VERSION"  echo -e "\\tPCSX2 VCS BUILD VERSION: $PCSX2_VERSION"
30  echo  echo
31    echo -e "\\tMSBUILD PATH: $VSC_MSBUILD"
32    echo -e "\\tMSBUILD OPTIONS: $VSC_MSBUILD_OPTIONS"
33    echo
34  echo "---------------------------------------------------------------------------------------"  echo "---------------------------------------------------------------------------------------"
35    
36  echo  echo
# Line 46  if [ "$DISABLE_PREBUILD" == "0" ] ; then Line 48  if [ "$DISABLE_PREBUILD" == "0" ] ; then
48                  fi                        fi      
49          fi          fi
50  else  else
51  echo "PREBUILD HAS BEEN DISABLED..."              echo "PREBUILD HAS BEEN DISABLED ... to enable do not use --no-prebuild"        
52  cd "$PCSX2_BUILD_TMP"          cd "$PCSX2_BUILD_TMP"
53  find -name *.pch -exec rm -f {} \;          find -name *.pch -exec rm -f {} \;
54  echo              echo    
55  fi  fi
56    
57    # re-generate pcsx2-version.txt
58    echo "$PCSX2_VERSION" > "$PCSX2_BUILD_TMP/bin/pcsx2-version.txt"
59    
60  # START VISUAL STUDIO BUILD SUPPORT  # START VISUAL STUDIO BUILD SUPPORT
61  export BUILD_SUCCESS=0  export BUILD_SUCCESS=0
62  echo "PERFORMING BUILD:"  echo "PERFORMING BUILD:"
63  "$MSBUILD" /nologo /t:Clean,rebuild "$VSC_PROJECT_PATH_WIN32" && BUILD_SUCCESS=0 || BUILD_SUCCESS=1  "$VSC_MSBUILD" $VSC_MSBUILD_OPTIONS "$VSC_PROJECT_PATH_WIN32" && BUILD_SUCCESS=0 || BUILD_SUCCESS=1
64  # END VISUAL STUDIO BUILD SUPPORT  # END VISUAL STUDIO BUILD SUPPORT
65    
66  #echo "BUILD SUCCESS: $BUILD_SUCCESS"  #echo "BUILD SUCCESS: $BUILD_SUCCESS"
# Line 66  if [ "$BUILD_SUCCESS" == 0 ] ; then Line 71  if [ "$BUILD_SUCCESS" == 0 ] ; then
71    
72          # START POST BUILD          # START POST BUILD
73          echo "PERFORMING POSTBUILD:"          echo "PERFORMING POSTBUILD:"
74          cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$downstream_export_location/trunk/bin/"          echo -e "\\tCOPYING $PCSX2_BUILD_TMP/bin/* $downstream_export_location/trunk/bin/ ... {}"
75            cp -Rfv "$PCSX2_BUILD_TMP/bin"/* "$downstream_export_location/trunk/bin/" >/dev/null 2>/dev/null
76          echo "POSTBUILD COMPLETED..."          echo "POSTBUILD COMPLETED..."
77          # END POST BUILD          # END POST BUILD
78    
79          # CLEANUP          # CLEANUP
80          echo "PERFORMING CLEANUP"          echo "PERFORMING CLEANUP"
81          if [ "$DISABLE_CLEANUP" == "0" ] ; then          if [ "$DISABLE_CLEANUP" == "0" ] ; then
82                    echo -e "\\tCLEANING $PCSX2_BUILD_TMP/bin/ ... {}"
83                  cd "$BUILD_TMP_DIR"                  cd "$BUILD_TMP_DIR"
84                  rm -Rf "$PCSX2_BUILD_TMP"                  rm -Rf "$PCSX2_BUILD_TMP" >/dev/null 2>/dev/null
85                  rm -Rf *                  #rm -Rf *
86                  echo "CLEANUP COMPLETE..."                  echo "CLEANUP COMPLETE..."
87          else          else
88          echo "CLEANUP DISABLED..."                  echo "CLEANUP HAS BEEN DISABLED ... to enable do not use --no-cleaup"
89          fi          fi
90    
91          echo          echo
# Line 96  else Line 103  else
103          echo "PERFORMING CLEANUP"          echo "PERFORMING CLEANUP"
104                    
105          if [ "$DISABLE_CLEANUP" == "0" ] ; then          if [ "$DISABLE_CLEANUP" == "0" ] ; then
106                    echo -e "\\tCLEANING $PCSX2_BUILD_TMP/bin/ ... {}"
107                  cd "$BUILD_TMP_DIR"                  cd "$BUILD_TMP_DIR"
108                  rm -Rf "$PCSX2_BUILD_TMP"                  rm -Rf "$PCSX2_BUILD_TMP" >/dev/null 2>/dev/null
109                  rm -Rf *                  #rm -Rf *
110                  echo "CLEANUP COMPLETE..."                  echo "CLEANUP COMPLETE..."
111          else          else
112          echo "CLEANUP DISABLED..."                  echo "CLEANUP HAS BEEN DISABLED ... to enable do not use --no-cleaup"
113          fi          fi
114          echo          echo
115          echo "BUILD FAILED..."          echo "BUILD FAILED..."

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

  ViewVC Help
Powered by ViewVC 1.1.22