Skip to content
Snippets Groups Projects
Commit cbb45415 authored by jacob's avatar jacob
Browse files

apparently os x's cvs includes the full cvs repo path in

CVS/Repository, but we only want the basename.
parent 1594af3f
No related merge requests found
...@@ -12,7 +12,7 @@ parent=$1 ...@@ -12,7 +12,7 @@ parent=$1
child=$2 child=$2
CHILD=`echo $child | sed -e "s/^b_//" | tr "[a-z]" "[A-Z]"` CHILD=`echo $child | sed -e "s/^b_//" | tr "[a-z]" "[A-Z]"`
dir=${3:-.} dir=${3:-.}
module=$(<$dir/CVS/Repository) module=$(basename $(<$dir/CVS/Repository))
if [ "$module" = "lustre" ] ; then if [ "$module" = "lustre" ] ; then
echo >&2 "${progname}: You probably want to branch lustre or portals." echo >&2 "${progname}: You probably want to branch lustre or portals."
......
...@@ -27,7 +27,7 @@ CHILD=`echo $child | sed -e "s/^b_//" | tr "[a-z]" "[A-Z]"` ...@@ -27,7 +27,7 @@ CHILD=`echo $child | sed -e "s/^b_//" | tr "[a-z]" "[A-Z]"`
date=`date +%Y%m%d_%H%M` date=`date +%Y%m%d_%H%M`
dir=${3:-.} dir=${3:-.}
module=$(<$dir/CVS/Repository) module=$(basename $(<$dir/CVS/Repository))
if [ "$module" = "lustre" ] ; then if [ "$module" = "lustre" ] ; then
echo >&2 "${progname}: You probably want to branch lustre or portals, not the whole tree." echo >&2 "${progname}: You probably want to branch lustre or portals, not the whole tree."
......
...@@ -25,7 +25,7 @@ CHILD=`echo $child | sed -e "s/^b_//" | tr "[a-z]" "[A-Z]"` ...@@ -25,7 +25,7 @@ CHILD=`echo $child | sed -e "s/^b_//" | tr "[a-z]" "[A-Z]"`
date=`date +%Y%m%d_%H%M` date=`date +%Y%m%d_%H%M`
dir=${3:-.} dir=${3:-.}
module=$(<$dir/CVS/Repository) module=$(basename $(<$dir/CVS/Repository))
if [ "$module" = "lustre" ] ; then if [ "$module" = "lustre" ] ; then
echo >&2 "${progname}: You probably want to branch lustre or portals, not the whole tree." echo >&2 "${progname}: You probably want to branch lustre or portals, not the whole tree."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment