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

Annotation of /update_from_upstream.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 23 - (hide annotations) (download) (as text)
Mon Sep 6 23:53:15 2010 UTC (9 years, 10 months ago) by william
File MIME type: application/x-sh
File size: 2705 byte(s)
Added import of required OpenGL and Nvidia Cg SDK(s) into update_from_upstream.sh script
1 william 16 #!/bin/bash
2    
3     export downstream_export_location="`pwd`"
4     export upstream_trunk="$downstream_export_location/upstream"
5     export upstream_repsoitory_url=""
6 william 20 #export upstream_revision="HEAD"
7     export upstream_revision="3113"
8 william 16
9 william 23 export dependent_3rdparty_includes_location="$downstream_export_location/3rdparty_deps/includes"
10     export dependent_3rdparty_libs_location="$downstream_export_location/3rdparty_deps/libs"
11 william 16
12     echo
13     echo "UPSTREAM TRUNK: $upstream_trunk"
14     echo "DOWNSTREAM EXPORT LOCATION: $downstream_export_location"
15    
16     cd "$upstream_trunk/trunk"
17    
18    
19     if [ "$upstream_revision" == "HEAD" ] ; then
20     svn update > /dev/null
21     echo
22     echo -n "Updated Upstream PCSX2 Repository to Revision: "
23     svn log -r head:prev --xml | grep "revision=" | sed s/".*revision=\""// | sed s/"\".*"// > "$upstream_trunk/trunk/upstream_repository_revision.txt"
24     export upstream_revision=`cat "$upstream_trunk/trunk/upstream_repository_revision.txt"`
25     echo $upstream_revision
26     else
27     svn update -r "$upstream_revision" > /dev/null
28     echo
29     echo -n "Updated Upstream PCSX2 Repository to Revision: "
30     svn log -r "$upstream_revision" --xml | grep "revision=" | sed s/".*revision=\""// | sed s/"\".*"// > "$upstream_trunk/trunk/upstream_repository_revision.txt"
31     export upstream_revision=`cat "$upstream_trunk/trunk/upstream_repository_revision.txt"`
32     echo $upstream_revision
33     fi
34    
35    
36    
37    
38     upstream_repository_url=`svn info --xml | grep "<url>" | sed s/"^<url>"// | sed s/"<\/url>$"//`
39    
40     echo
41     echo -n "CLEANING DOWNSTREAM EXPORT LOCATION: $downstream_export_location/trunk ... "
42     cd "$downstream_export_location/trunk"
43     #rm -Rfv * >/dev/null 2>/dev/null && echo "Done." || echo "Failed."
44     find -not -path "*svn*" -exec rm -f {} 2>/dev/null \;
45     echo "Done."
46    
47     echo
48     echo -n "EXPORTING: $upstream_trunk/trunk to $downstream_export_location/trunk ... "
49     svn export --force "$upstream_trunk" "$downstream_export_location" 2>/dev/null
50    
51     #copy current_revision_tag
52     cp -f "$upstream_trunk/trunk/upstream_repository_revision.txt" "$downstream_export_location/trunk/upstream_repository_revision.txt" > /dev/null 2>/dev/null
53     echo "$upstream_repository_url" > "$downstream_export_location/trunk/upstream_repository_url.txt"
54 william 23
55     echo
56     echo -n "COPYING: Dependent Includes Files from $dependent_3rdparty_includes_location -> $downstream_export_location/trunk/3rdparty ... "
57     cp -Rf "$dependent_3rdparty_includes_location/*" "$downstream_export_location/trunk/3rdparty/" && echo "Done." || echo "Failed."
58    
59     echo
60     echo -n "COPYING: Dependent Library Files from $dependent_3rdparty_libs_location -> $downstream_export_location/trunk/deps/Win32/Debug ... "
61     cp -Rf "$dependent_3rdparty_libs_location/*" "$downstream_export_location/trunk/deps/Win32/Debug/" && echo "Done." || echo "Failed."

  ViewVC Help
Powered by ViewVC 1.1.22