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

Contents of /update_from_upstream.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20 - (show annotations) (download) (as text)
Mon Sep 6 18:06:26 2010 UTC (9 years, 10 months ago) by william
File MIME type: application/x-sh
File size: 1966 byte(s)
Updated:
InstallingRequiredSDKsorLibraries.txt (Added note about needing to install SP1 for Visual Studio 2008 to get rid of linker errors)
update_from_upstream.sh (use r3113 and make 'export complete' appear on same line with export operation)

Add:
patches folder
1 #!/bin/bash
2
3 export downstream_export_location="`pwd`"
4 export upstream_trunk="$downstream_export_location/upstream"
5 export upstream_repsoitory_url=""
6 #export upstream_revision="HEAD"
7 export upstream_revision="3113"
8
9
10 echo
11 echo "UPSTREAM TRUNK: $upstream_trunk"
12 echo "DOWNSTREAM EXPORT LOCATION: $downstream_export_location"
13
14 cd "$upstream_trunk/trunk"
15
16
17 if [ "$upstream_revision" == "HEAD" ] ; then
18 svn update > /dev/null
19 echo
20 echo -n "Updated Upstream PCSX2 Repository to Revision: "
21 svn log -r head:prev --xml | grep "revision=" | sed s/".*revision=\""// | sed s/"\".*"// > "$upstream_trunk/trunk/upstream_repository_revision.txt"
22 export upstream_revision=`cat "$upstream_trunk/trunk/upstream_repository_revision.txt"`
23 echo $upstream_revision
24 else
25 svn update -r "$upstream_revision" > /dev/null
26 echo
27 echo -n "Updated Upstream PCSX2 Repository to Revision: "
28 svn log -r "$upstream_revision" --xml | grep "revision=" | sed s/".*revision=\""// | sed s/"\".*"// > "$upstream_trunk/trunk/upstream_repository_revision.txt"
29 export upstream_revision=`cat "$upstream_trunk/trunk/upstream_repository_revision.txt"`
30 echo $upstream_revision
31 fi
32
33
34
35
36 upstream_repository_url=`svn info --xml | grep "<url>" | sed s/"^<url>"// | sed s/"<\/url>$"//`
37
38 echo
39 echo -n "CLEANING DOWNSTREAM EXPORT LOCATION: $downstream_export_location/trunk ... "
40 cd "$downstream_export_location/trunk"
41 #rm -Rfv * >/dev/null 2>/dev/null && echo "Done." || echo "Failed."
42 find -not -path "*svn*" -exec rm -f {} 2>/dev/null \;
43 echo "Done."
44
45 echo
46 echo -n "EXPORTING: $upstream_trunk/trunk to $downstream_export_location/trunk ... "
47 svn export --force "$upstream_trunk" "$downstream_export_location" 2>/dev/null
48
49 #copy current_revision_tag
50 cp -f "$upstream_trunk/trunk/upstream_repository_revision.txt" "$downstream_export_location/trunk/upstream_repository_revision.txt" > /dev/null 2>/dev/null
51 echo "$upstream_repository_url" > "$downstream_export_location/trunk/upstream_repository_url.txt"

  ViewVC Help
Powered by ViewVC 1.1.22