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

Contents of /auto_tag_latest_upstream.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 92 - (show annotations) (download) (as text)
Thu Sep 9 16:33:43 2010 UTC (10 years ago) by william
File MIME type: application/x-sh
File size: 2646 byte(s)
Adding scripts to:
1) Update ./trunk from ./upstream/trunk
2) insert dependencies into ./trunk
3) create latest branch
4) auto build latest branch
5) auto tag latest build
1 #!/bin/bash
2 ## dummy values -- comment these out after testing
3 #export SVNROOT_URL="https://svn.netsolutions.dnsalias.com/websvn/ps2/pcsx2/pcsx2_0.9.7"
4 #export downstream_export_location="`pwd`"
5 #export upstream_revision="3738"
6 #export SVNTMP="svntmp"
7 #export BRANCH_DIR="branch"
8 #export BRANCH_CONFIGURATION="debug"
9 #export BRANCH_LINE="0.X"
10 #export BRANCH_NAME="latest"
11 #export BRANCH_URL="$SVNROOT_URL/$BRANCH_DIR/$BRANCH_CONFIGURATION/$BRANCH_LINE/$BRANCH_NAME"
12 #export BRANCH_LOCATION="$downstream_export_location/$BRANCH_DIR/$BRANCH_CONFIGURATION/$BRANCH_LINE"
13 #export PCSX2_VERSION=""
14 ## end dummy
15
16 cd "$BRANCH_LOCATION/$BRANCH_NAME/bin"
17 PCSX2_VERSION=`cat pcsx2-version.txt`
18
19 export TAG_PRECOMMIT_MESSAGE="Commiting build of: $PCSX2_VERSION"
20 export TAG_MESSAGE="Tagging build of: $PCSX2_VERSION"
21
22 export TAG_DIR="tag"
23 export TAG_CONFIGURATION="debug"
24 export TAG_LINE="0.X"
25 export TAG_NAME="latest"
26
27 export TAG_URL="$SVNROOT_URL/$TAG_DIR/$TAG_CONFIGURATION/$TAG_LINE/$TAG_NAME"
28 export TAG_LOCATION="$downstream_export_location/$TAG_DIR/$TAG_CONFIGURATION/$TAG_LINE"
29 export TAG_COMMIT_MESSAGE="Creating $TAG_NAME tag for r$upstream_revision"
30
31
32 # add the newly built files to svn
33 find -not -path "*.svn*" \
34 -not -name "*.bsc" \
35 -not -name "*.exp" \
36 -not -name "*.ilk" \
37 -not -name "*.lib" -exec bash -c '
38 #echo "{}"
39 if [ "{}" != "." ] ; then
40 export svn_file=`echo "{}" | sed s/".\/"//`
41 export svn_need_to_add=`svn status | grep "$svn_file"`
42 if [ "$svn_need_to_add" != "" ] ; then
43 svn add "{}" >/dev/null 2>/dev/null
44 fi
45 fi
46 ' \;
47
48 # commit the changes
49 #svn commit -m "$TAG_PRECOMMIT_MESSAGE" --non-interactive --trust-server-cert
50 svn commit -m "$TAG_PRECOMMIT_MESSAGE" --non-interactive --trust-server-cert >/dev/null 2>/dev/null
51
52
53 echo $TAG_MESSAGE
54 rm -Rf "$TAG_LOCATION/$TAG_NAME"
55 svn delete "$TAG_LOCATION/TAG_NAME" --non-interactive --trust-server-cert >/dev/null 2>/dev/null
56 svn commit "$TAG_LOCATION" --non-interactive --trust-server-cert --depth immediates -m "remove latest tag for re-tagging" >/dev/null 2>/dev/null
57
58 echo
59 echo -n "EXPORTING: $BRANCH_LOCATION/$BRANCH_NAME/bin to $TAG_LOCATION/$TAG_NAME ... "
60 #svn export --force ./ "$TAG_LOCATION/$TAG_NAME"
61 svn export --force ./ "$TAG_LOCATION/$TAG_NAME" 2>/dev/null
62
63 echo
64 echo -n "Adding latest tag to svn ... "
65 #svn add "$TAG_LOCATION/$TAG_NAME"
66 svn add "$TAG_LOCATION/$TAG_NAME" >/dev/null 2>/dev/null
67 echo "Done."
68
69 cd "$TAG_LOCATION/$TAG_NAME"
70 # commit the newly created branch
71 #svn commit -m "$TAG_MESSAGE" "$TAG_LOCATION" --non-interactive --trust-server-cert
72 svn commit -m "$TAG_MESSAGE" "$TAG_LOCATION" --non-interactive --trust-server-cert >/dev/null 2>/dev/null
73

  ViewVC Help
Powered by ViewVC 1.1.22