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

Annotation of /auto_tag_latest_upstream.sh

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.22