/[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 147 - (hide annotations) (download) (as text)
Fri Sep 10 16:26:34 2010 UTC (10 years ago) by william
File MIME type: application/x-sh
File size: 1643 byte(s)
auto_tag_latest_upstream.sh: TAG_NAME was used should have been $TAG_NAME
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 william 147 #svn delete "$TAG_LOCATION/$TAG_NAME" --non-interactive --trust-server-cert
30     svn delete "$TAG_LOCATION/$TAG_NAME" --non-interactive --trust-server-cert >/dev/null 2>/dev/null
31 william 92 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