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

Diff of /auto_update_from_upstream.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 113 by william, Thu Sep 9 21:19:52 2010 UTC revision 115 by william, Thu Sep 9 23:53:30 2010 UTC
# Line 26  if [ "$upstream_revision" == "HEAD" ] ; Line 26  if [ "$upstream_revision" == "HEAD" ] ;
26          echo $upstream_revision          echo $upstream_revision
27          upstream_repository_url=`svn info --xml | grep "<url>" | sed s/"^<url>"// | sed s/"<\/url>$"//`          upstream_repository_url=`svn info --xml | grep "<url>" | sed s/"^<url>"// | sed s/"<\/url>$"//`
28          echo "$upstream_repository_url" > "$upstream_trunk/trunk/upstream_repository_url.txt"          echo "$upstream_repository_url" > "$upstream_trunk/trunk/upstream_repository_url.txt"
29          #UPDATE PCSX2 VERSION          mkdir -p "$upstream_trunk/trunk/bin"
30          PCSX2_VERSION="pcsx2-$upstream_current_version_branch-r$upstream_revision-$downstream_build_configuration";          echo "$PCSX2_VERSION" > "$upstream_trunk/trunk/bin/pcsx2-version.txt"
         mkdir -p "$downstream_export_location/trunk/bin"  
         echo "$PCSX2_VERSION" > "$downstream_export_location/trunk/bin/pcsx2-version.txt"  
31    
32  else  else
33          svn update -r "$upstream_revision" > /dev/null          svn update -r "$upstream_revision" > /dev/null
# Line 39  else Line 37  else
37          export upstream_revision=`cat "$upstream_trunk/trunk/upstream_repository_revision.txt"`          export upstream_revision=`cat "$upstream_trunk/trunk/upstream_repository_revision.txt"`
38          echo $upstream_revision          echo $upstream_revision
39          upstream_repository_url=`svn info --xml | grep "<url>" | sed s/"^<url>"// | sed s/"<\/url>$"//`          upstream_repository_url=`svn info --xml | grep "<url>" | sed s/"^<url>"// | sed s/"<\/url>$"//`
         #UPDATE PCSX2 VERSION  
         PCSX2_VERSION="pcsx2-$upstream_current_version_branch-r$upstream_revision-$downstream_build_configuration";  
40          echo "$upstream_repository_url" > "$upstream_trunk/trunk/upstream_repository_url.txt"          echo "$upstream_repository_url" > "$upstream_trunk/trunk/upstream_repository_url.txt"
41          mkdir -p "$downstream_export_location/trunk/bin"          mkdir -p "$upstream_trunk/trunk/bin"
42          echo "$PCSX2_VERSION" > "$downstream_export_location/trunk/bin/pcsx2-version.txt"          echo "$PCSX2_VERSION" > "$upstream_trunk/trunk/bin/pcsx2-version.txt"
43    
44  fi  fi
45    
# Line 85  find  -not -path "*.svn*" -exec rm -f {} Line 81  find  -not -path "*.svn*" -exec rm -f {}
81  echo "Done."  echo "Done."
82    
83    
 #copy current_revision_tag  
 cp -f "$upstream_trunk/trunk/upstream_repository_revision.txt" "$downstream_export_location/trunk/upstream_repository_revision.txt" > /dev/null 2>/dev/null  
 cp -f "$upstream_trunk/trunk/upstream_repository_url.txt" "$downstream_export_location/trunk/upstream_repository_url.txt" > /dev/null 2>/dev/null  
   
   
   
84    
85  echo  echo
86  echo "CREATING DOWNSTREAM TRUNK FOR VERSION: $PCSX2_VERSION"  echo "CREATING DOWNSTREAM TRUNK FOR VERSION: $PCSX2_VERSION"
87    
88  echo  echo
89  echo -n "EXPORTING: $upstream_trunk/trunk to $downstream_export_location/trunk ... "  echo -n "EXPORTING: $upstream_trunk/trunk to $downstream_export_location/trunk ... "
90  svn export --force "$upstream_trunk" "$downstream_export_location" 2>/dev/null  svn export --force "$upstream_trunk/trunk/" "$downstream_export_location/trunk/" 2>/dev/null
91    
92    #copy current_revision_tag
93    cp -f "$upstream_trunk/trunk/upstream_repository_revision.txt" "$downstream_export_location/trunk/upstream_repository_revision.txt" > /dev/null 2>/dev/null
94    cp -f "$upstream_trunk/trunk/upstream_repository_url.txt" "$downstream_export_location/trunk/upstream_repository_url.txt" > /dev/null 2>/dev/null
95    cp -f "$upstream_trunk/trunk/bin/pcsx2-version.txt" "$downstream_export_location/trunk/bin/pcsx2-version.txt"
96    
97  cd "$downstream_export_location"  cd "$downstream_export_location"
98  "$downstream_export_location/auto_import_3rdparty_deps.sh"  "$downstream_export_location/auto_import_3rdparty_deps.sh"

Legend:
Removed from v.113  
changed lines
  Added in v.115

  ViewVC Help
Powered by ViewVC 1.1.22