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

  ViewVC Help
Powered by ViewVC 1.1.22