/[pcsx2_0.9.7]/auto_prebuild_latest_upstream.sh
ViewVC logotype

Annotation of /auto_prebuild_latest_upstream.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (hide annotations) (download) (as text)
Fri Sep 10 15:59:59 2010 UTC (10 years, 1 month ago) by william
File MIME type: application/x-sh
File size: 913 byte(s)
fix exit codes for failure
1 william 96 #!/bin/bash
2 william 119 . ./auto_defs.sh
3 william 96
4 william 98 export AUTO_PREBUILD_DONE=""
5    
6 william 97 if [ "$1" != "" ] ; then
7     export OVERRIDE_TMP_BUILD_PATH="$1"
8     . ./auto_build_defs.sh
9     fi
10    
11    
12 william 96 #clean up BUILD_TMP_DIR
13     cd "$BUILD_TMP_DIR"
14 william 134 if [ -d "$VSC_PROJECT_ROOT" ] ; then
15     rm -Rf "$VSC_PROJECT_ROOT"
16 william 99 fi
17 william 96
18     # Make Build TMP Path
19 william 97
20 william 134 mkdir -p "$VSC_PROJECT_ROOT"
21     cd "$VSC_PROJECT_ROOT"
22 william 96
23     echo
24     echo "PERFORMING PREBUILD:"
25 william 107 # export trunk to tmp dir
26 william 134 echo -ne "\\tCOPYING: "$downstream_export_location/trunk" to $VSC_PROJECT_ROOT ... "
27     #svn export --force "$downstream_export_location/trunk" "$VSC_PROJECT_ROOT" 2>/dev/null
28 william 96
29 william 125 cd "$downstream_export_location/trunk/"
30 william 144 tar -cvf - --exclude=*.ncb . 2>/dev/null | (gzip -cf9 - 2>/dev/null ) | (cd "$VSC_PROJECT_ROOT"; tar -xvzf - 2>/dev/null) &>/dev/null && echo "done." || exit 1
31 william 96
32 william 134 cd "$VSC_PROJECT_ROOT"
33 william 96 # remove all .pch files
34     find -name *.pch -exec rm -f {} \;
35     echo "PREBUILD COMPLETED..."
36     echo

  ViewVC Help
Powered by ViewVC 1.1.22