/[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 100 by william, Thu Sep 9 18:04:56 2010 UTC revision 103 by william, Thu Sep 9 18:40:12 2010 UTC
# Line 11  export DISABLE_AUTO_TAG="0" Line 11  export DISABLE_AUTO_TAG="0"
11  if [ "$2" == "--no-auto-tag" ] ; then  if [ "$2" == "--no-auto-tag" ] ; then
12          DISABLE_AUTO_TAG="1"          DISABLE_AUTO_TAG="1"
13  fi  fi
14    if [ "$3" == "--no-prebuild" ] ; then
15            DISABLE_PREBUILD="1"
16    fi
17    if [ "$4" == "--no-cleanup" ] ; then
18            DISABLE_CLEANUP="1"
19    fi
20    
21  # output variables  # output variables
22  echo "---------------------------------------------------------------------------------------"  echo "---------------------------------------------------------------------------------------"
# Line 30  echo "PERFORMING AUTOBUILD:" Line 36  echo "PERFORMING AUTOBUILD:"
36                    
37    
38  # call auto prebuild  # call auto prebuild
39  if [ "$AUTO_PREBUILD_DONE" == "" ] ; then  if [ "$DISABLE_PREBUILD" == "0" ] ; then
40          "$downstream_export_location/auto_prebuild_latest_upstream.sh"          if [ "$AUTO_PREBUILD_DONE" == "" ] ; then
41          if [ "$AUTO_PREBUILD_DONE" != "true" ] ; then                  "$downstream_export_location/auto_prebuild_latest_upstream.sh"
42                  echo "PREBUILD FAILED..."                  if [ "$AUTO_PREBUILD_DONE" != "true" ] ; then
43                  exit 1                          echo "PREBUILD FAILED..."
44          fi                                exit 1
45                            fi      
46                    fi
47    else
48    echo "PREBUILD HAS BEEN DISABLED..."    
49    cd "$PCSX2_BUILD_TMP"
50    find -name *.pch -exec rm -f {} \;
51    echo    
52  fi  fi
53    
54  # START VISUAL STUDIO BUILD SUPPORT  # START VISUAL STUDIO BUILD SUPPORT
# Line 60  if [ "$BUILD_SUCCESS" == 0 ] ; then Line 71  if [ "$BUILD_SUCCESS" == 0 ] ; then
71    
72          # CLEANUP          # CLEANUP
73          echo "PERFORMING CLEANUP"          echo "PERFORMING CLEANUP"
74          cd "$BUILD_TMP_DIR"          if [ "$DISABLE_CLEANUP" == "0" ] ; then
75          rm -Rf "$PCSX2_BUILD_TMP"                  cd "$BUILD_TMP_DIR"
76          rm -Rf *                  rm -Rf "$PCSX2_BUILD_TMP"
77          echo "CLEANUP COMPLETE..."                  rm -Rf *
78                    echo "CLEANUP COMPLETE..."
79            else
80            echo "CLEANUP DISABLED..."
81            fi
82    
83          echo          echo
84          echo "AUTOBUILD COMPLETE..."          echo "AUTOBUILD COMPLETE..."
# Line 77  else Line 92  else
92    
93          # CLEANUP          # CLEANUP
94          echo "PERFORMING CLEANUP"          echo "PERFORMING CLEANUP"
95          cd "$BUILD_TMP_DIR"          
96          rm -Rf "$PCSX2_BUILD_TMP"          if [ "$DISABLE_CLEANUP" == "0" ] ; then
97          rm -Rf *                  cd "$BUILD_TMP_DIR"
98          echo "CLEANUP COMPLETE..."                  rm -Rf "$PCSX2_BUILD_TMP"
99                    rm -Rf *
100                    echo "CLEANUP COMPLETE..."
101            else
102            echo "CLEANUP DISABLED..."
103            fi
104          echo          echo
105          echo "BUILD FAILED..."          echo "BUILD FAILED..."
106          echo          echo

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

  ViewVC Help
Powered by ViewVC 1.1.22