Magellan Linux

Contents of /trunk/pkgtools/svn-move-deprecated-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: 449 byte(s)
-added
1 #!/bin/bash
2
3 die() { echo "Error: $@"; exit 1; }
4
5 MOVE_FROM=deprecated
6 MOVE_TO=todo
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