/[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 102 by william, Thu Sep 9 18:13:48 2010 UTC revision 106 by william, Thu Sep 9 20:13:18 2010 UTC
# Line 8  fi Line 8  fi
8    
9  export DISABLE_AUTO_TAG="0"  export DISABLE_AUTO_TAG="0"
10    
11  if [ "$2" == "--no-auto-tag" ] ; then  if [ "$2" == "--no-auto-branch" ] ; then
12          DISABLE_AUTO_TAG="1"          DISABLE_AUTO_BRANCH="1"
13  fi  fi
14  if [ "$3" == "--no-prebuild" ] ; then  if [ "$3" == "--no-prebuild" ] ; then
15          DISABLE_PREBUILD="1"          DISABLE_PREBUILD="1"
16  fi  fi
17    if [ "$4" == "--no-cleanup" ] ; then
18            DISABLE_CLEANUP="1"
19    fi
20    
21  # output variables  # output variables
22  echo "---------------------------------------------------------------------------------------"  echo "---------------------------------------------------------------------------------------"
# Line 43  if [ "$DISABLE_PREBUILD" == "0" ] ; then Line 46  if [ "$DISABLE_PREBUILD" == "0" ] ; then
46          fi          fi
47  else  else
48  echo "PREBUILD HAS BEEN DISABLED..."      echo "PREBUILD HAS BEEN DISABLED..."    
49    cd "$PCSX2_BUILD_TMP"
50    find -name *.pch -exec rm -f {} \;
51  echo      echo    
52  fi  fi
53    
# Line 66  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..."
85          # perform auto tagging          # perform auto tagging
86          if [ "$DISABLE_AUTO_TAG" == "0" ] ; then          if [ "$DISABLE_AUTO_BRANCH" == "0" ] ; then
87                  "$downstream_export_location/auto_tag_latest_upstream.sh"                  # Always force auto branch update after building
88                    "$downstream_export_location/auto_branch_latest_upstream.sh" --force-update
89          else          else
90                  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"
91          fi          fi
92  else  else
93    
94          # CLEANUP          # CLEANUP
95          echo "PERFORMING CLEANUP"          echo "PERFORMING CLEANUP"
96          cd "$BUILD_TMP_DIR"          
97          rm -Rf "$PCSX2_BUILD_TMP"          if [ "$DISABLE_CLEANUP" == "0" ] ; then
98          rm -Rf *                  cd "$BUILD_TMP_DIR"
99          echo "CLEANUP COMPLETE..."                  rm -Rf "$PCSX2_BUILD_TMP"
100                    rm -Rf *
101                    echo "CLEANUP COMPLETE..."
102            else
103            echo "CLEANUP DISABLED..."
104            fi
105          echo          echo
106          echo "BUILD FAILED..."          echo "BUILD FAILED..."
107          echo          echo

Legend:
Removed from v.102  
changed lines
  Added in v.106

  ViewVC Help
Powered by ViewVC 1.1.22