Whamcloud - gitweb
apparently os x's cvs includes the full cvs repo path in
authorjacob <jacob>
Wed, 2 Feb 2005 20:07:58 +0000 (20:07 +0000)
committerjacob <jacob>
Wed, 2 Feb 2005 20:07:58 +0000 (20:07 +0000)
CVS/Repository, but we only want the basename.

build/branch.sh
build/land1.sh
build/merge1.sh

index 328aeff..64c702e 100755 (executable)
@@ -12,7 +12,7 @@ parent=$1
 child=$2
 CHILD=`echo $child | sed -e "s/^b_//" | tr "[a-z]" "[A-Z]"`
 dir=${3:-.}
-module=$(<$dir/CVS/Repository)
+module=$(basename $(<$dir/CVS/Repository))
 
 if [ "$module" = "lustre" ] ; then
     echo >&2 "${progname}: You probably want to branch lustre or portals."
index 6b69eae..ce152f7 100755 (executable)
@@ -27,7 +27,7 @@ CHILD=`echo $child | sed -e "s/^b_//" | tr "[a-z]" "[A-Z]"`
 date=`date +%Y%m%d_%H%M`
 
 dir=${3:-.}
-module=$(<$dir/CVS/Repository)
+module=$(basename $(<$dir/CVS/Repository))
 
 if [ "$module" = "lustre" ] ; then
     echo >&2 "${progname}: You probably want to branch lustre or portals, not the whole tree."
index 29130fa..1fcebec 100755 (executable)
@@ -25,7 +25,7 @@ CHILD=`echo $child | sed -e "s/^b_//" | tr "[a-z]" "[A-Z]"`
 date=`date +%Y%m%d_%H%M`
 
 dir=${3:-.}
-module=$(<$dir/CVS/Repository)
+module=$(basename $(<$dir/CVS/Repository))
 
 if [ "$module" = "lustre" ] ; then
     echo >&2 "${progname}: You probably want to branch lustre or portals, not the whole tree."