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

  ViewVC Help
Powered by ViewVC 1.1.22