Magellan Linux

Annotation of /trunk/pkgtools/svn-move-deprecated-core.sh

Parent Directory Parent Directory | Revision Log 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: 449 byte(s)
-added
1 niro 1330 #!/bin/bash
2    
3     die() { echo "Error: $@"; exit 1; }
4    
5     MOVE_FROM=deprecated
6     MOVE_TO=core
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