Contents of /trunk/pkgtools/svn-move-deprecated-extra.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: 450 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: 450 byte(s)
-added
1 | #!/bin/bash |
2 | |
3 | die() { echo "Error: $@"; exit 1; } |
4 | |
5 | MOVE_FROM=deprecated |
6 | MOVE_TO=extra |
7 | |
8 | [[ ! -d ./${MOVE_FROM} ]] && die "Fatal error: directory '${MOVE_FROM}' does not exist!" |
9 | [[ ! -d ./${MOVE_TO} ]] && die "Fatal error: directory '${MOVE_TO}' does not exist!" |
10 | |
11 | PNAME="$1" |
12 | [[ -z ${PNAME} ]] && die "Give me \$PNAME" |
13 | |
14 | svn move ${MOVE_FROM}/${PNAME} ${MOVE_TO}/${PNAME} |
15 | svn commit -m "-moved to '${MOVE_TO}'" ${MOVE_FROM}/${PNAME} ${MOVE_TO}/${PNAME} |
16 | |
17 |