Magellan Linux

Contents of /trunk/pkgtools/svn-move-core-todo.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1330 - (show 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: 352 byte(s)
-added
1 #!/bin/bash
2
3 die() { echo "Error: $@"; exit 1; }
4
5 [[ ! -d ./core ]] && die "Fatal error: directory 'core' does not exist!"
6 [[ ! -d ./todo ]] && die "Fatal error: directory 'todo' does not exist!"
7
8 PNAME="$1"
9 [[ -z ${PNAME} ]] && die "Give me \$PNAME"
10
11 svn move core/${PNAME} todo/${PNAME}
12 svn commit -m "-moved to 'todo'" core/${PNAME} todo/${PNAME}
13
14