Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 306
- Log:
Add a few more tools which were never previously brought under
source control. They don't expose any sensitive account-specific
information for the ROOL server.
- Author:
- rool
- Date:
- Fri Mar 18 14:11:17 +0000 2011
- Size:
- 768 Bytes
- Properties:
- Property svn:executable is set to *
1 | #!/bin/bash |
2 | |
3 | echo "CHECKING OUT $1" |
4 | echo |
5 | |
6 | svn checkout file://$SVNROOT/rool/$1/trunk temp/$1 |
7 | sleep 2 |
8 | |
9 | echo |
10 | echo "REMOVING CONTROL DIRECTORIES" |
11 | |
12 | find temp/$1 -name ".svn" -print0 | xargs -n1 -0 rm -rf $1 |
13 | sleep 2 |
14 | |
15 | echo "PACKAGING SOURCES" |
16 | |
17 | cd temp |
18 | tar -c -f $1.tar $1 |
19 | bzip2 --best $1.tar |
20 | cd .. |
21 | sleep 2 |
22 | |
23 | echo "EXPORTING TO PUBLIC FOLDER (and tidying up)" |
24 | |
25 | # The rather gnarly looking ${1##*\/} strips off the longest |
26 | # match from the front of the string (the '##' part means this) |
27 | # with the match regexp being '*\/', i.e. any character then |
28 | # (an escaped) forwards slash. Basically, it means we get the |
29 | # leafname of the tar.bz2 file so it can be moved successfully. |
30 | |
31 | mv temp/$1.tar.bz2 ~/shared/tarballs/svn/${1##*\/}.tar.bz2 |
32 | rm -rf temp |
33 | sleep 2 |
34 | |
35 | echo "ALL DONE!" |
36 | echo |