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

  ViewVC Help
Powered by ViewVC 1.1.22