Contents of /trunk/pkgtools/svn-move-todo-core.sh
Parent Directory | Revision Log
Revision 1330 -
(show annotations)
(download)
(as text)
Tue May 31 17:42:39 2011 UTC (13 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 352 byte(s)
Tue May 31 17:42:39 2011 UTC (13 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 352 byte(s)
-added
1 | #!/bin/bash |
2 | |
3 | die() { echo "Error: $@"; exit 1; } |
4 | |
5 | [[ ! -d ./todo ]] && die "Fatal error: directory 'todo' does not exist!" |
6 | [[ ! -d ./core ]] && die "Fatal error: directory 'core' does not exist!" |
7 | |
8 | PNAME="$1" |
9 | [[ -z ${PNAME} ]] && die "Give me \$PNAME" |
10 | |
11 | svn move todo/${PNAME} core/${PNAME} |
12 | svn commit -m "-moved to 'core'" todo/${PNAME} core/${PNAME} |
13 | |
14 |