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