Magellan Linux

Annotation of /trunk/pkgtools/svn-move-todo-nonfree.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: 367 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 ./nonfree ]] && die "Fatal error: directory 'nonfree' does not exist!"
7    
8     PNAME="$1"
9     [[ -z ${PNAME} ]] && die "Give me \$PNAME"
10    
11     svn move todo/${PNAME} nonfree/${PNAME}
12     svn commit -m "-moved to 'nonfree'" todo/${PNAME} nonfree/${PNAME}
13    
14