Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 821 - (show annotations) (download) (as text)
Fri Apr 24 19:17:49 2009 UTC (15 years ago) by niro
File MIME type: application/x-sh
File size: 360 byte(s)
-added svn related tools
1 #!/bin/bash
2
3 die() { echo "Error: $@"; exit 1; }
4
5 [[ ! -d ./core ]] && die "Fatal error: directory 'core' does not exist!"
6 [[ ! -d ./extras ]] && die "Fatal error: directory 'extras' does not exist!"
7
8 PNAME="$1"
9 [[ -z ${PNAME} ]] && die "Give me \$PNAME"
10
11 svn move extras/${PNAME} core/${PNAME}
12 svn commit -m "-moved to 'core'" extras/${PNAME} core/${PNAME}
13
14

Properties

Name Value
svn:keywords Id