/[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 94 - (show annotations) (download) (as text)
Thu Sep 9 16:57:05 2010 UTC (10 years, 2 months ago) by william
File MIME type: application/x-sh
File size: 1604 byte(s)
Moved all Auto script definitions into auto_defs.sh.
Updated all auto scripts to call . ./auto_defs.sh
1 #!/bin/bash
2 . ./auto_defs.sh
3
4 cd "$BRANCH_LOCATION/$BRANCH_NAME/bin"
5 PCSX2_VERSION=`cat pcsx2-version.txt`
6
7 # add the newly built files to svn
8 find -not -path "*.svn*" \
9 -not -name "*.bsc" \
10 -not -name "*.exp" \
11 -not -name "*.ilk" \
12 -not -name "*.lib" -exec bash -c '
13 #echo "{}"
14 if [ "{}" != "." ] ; then
15 export svn_file=`echo "{}" | sed s/".\/"//`
16 export svn_need_to_add=`svn status | grep "$svn_file"`
17 if [ "$svn_need_to_add" != "" ] ; then
18 svn add "{}" >/dev/null 2>/dev/null
19 fi
20 fi
21 ' \;
22
23 # commit the changes
24 #svn commit -m "$TAG_PRECOMMIT_MESSAGE" --non-interactive --trust-server-cert
25 svn commit -m "$TAG_PRECOMMIT_MESSAGE" --non-interactive --trust-server-cert >/dev/null 2>/dev/null
26
27
28 echo $TAG_MESSAGE
29 rm -Rf "$TAG_LOCATION/$TAG_NAME"
30 svn delete "$TAG_LOCATION/TAG_NAME" --non-interactive --trust-server-cert >/dev/null 2>/dev/null
31 svn commit "$TAG_LOCATION" --non-interactive --trust-server-cert --depth immediates -m "remove latest tag for re-tagging" >/dev/null 2>/dev/null
32
33 echo
34 echo -n "EXPORTING: $BRANCH_LOCATION/$BRANCH_NAME/bin to $TAG_LOCATION/$TAG_NAME ... "
35 #svn export --force ./ "$TAG_LOCATION/$TAG_NAME"
36 svn export --force ./ "$TAG_LOCATION/$TAG_NAME" 2>/dev/null
37
38 echo
39 echo -n "Adding latest tag to svn ... "
40 #svn add "$TAG_LOCATION/$TAG_NAME"
41 svn add "$TAG_LOCATION/$TAG_NAME" >/dev/null 2>/dev/null
42 echo "Done."
43
44 cd "$TAG_LOCATION/$TAG_NAME"
45 # commit the newly created branch
46 #svn commit -m "$TAG_MESSAGE" "$TAG_LOCATION" --non-interactive --trust-server-cert
47 svn commit -m "$TAG_MESSAGE" "$TAG_LOCATION" --non-interactive --trust-server-cert >/dev/null 2>/dev/null
48

  ViewVC Help
Powered by ViewVC 1.1.22