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

Contents of /auto_commit_trunk.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 92 - (show annotations) (download) (as text)
Thu Sep 9 16:33:43 2010 UTC (8 years, 11 months ago) by william
File MIME type: application/x-sh
File size: 1154 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
3 export AUTO_COMMIT_MESSAGE="Auto Commited Import of: $PCSX2_VERSION in ./trunk"
4
5 echo
6 echo "Preparing to Auto Commit Import of: $PCSX2_VERSION in ./trunk"
7
8 cd "$downstream_export_location/trunk"
9
10
11
12 echo
13 echo -n "Getting rid of symbolic links ... "
14 find -not -path "*.svn*" -exec bash -c '
15 if [ -L "{}" ] ; then
16 # file is a symbolic link, remove it
17 rm -f "{}"
18 fi
19 ' \;
20 echo "Done."
21
22
23 echo
24 echo -n "Adding Non-Versioned Files to repository ... "
25 find -not -path "*.svn*" -exec svn add "{}" >/dev/null 2>/dev/null \;
26 echo "Done."
27
28 echo
29 echo -n "Deleting missing Files to repository ... "
30 for deleted_file in `svn status | grep "\!" | sed s/"$"/"\""/ | sed s/"\!"/"\""/ | sed s/"[\t]"// | sed s/"\" "/"\""/ | tr " " \#`
31 do
32 export file=`echo $deleted_file | tr "\#" " " | tr -d \"`
33 svn delete "./$file"
34 done
35 echo "Done."
36
37
38
39 echo -n "Cleaning Up before commit in ./trunk ... "
40 svn cleanup >/dev/null 2>/dev/null
41 echo "Done."
42
43 echo
44 echo "Committing ./trunk"
45 #svn commit -m "$AUTO_COMMIT_MESSAGE" --non-interactive --trust-server-cert
46 svn commit -m "$AUTO_COMMIT_MESSAGE" --non-interactive --trust-server-cert >/dev/null 2>/dev/null

  ViewVC Help
Powered by ViewVC 1.1.22