Mercurial > illumos > illumos-gate
changeset 13643:837d1b6404bf
1960 developer tools should support git (fix ws)
author | Richard Lowe <richlowe@richlowe.net> |
---|---|
date | Thu, 22 Mar 2012 15:26:42 -0400 |
parents | 8107b374f945 |
children | e48bbfe444bf |
files | usr/src/tools/scripts/ws.sh |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/tools/scripts/ws.sh Tue Mar 20 15:29:39 2012 -0700 +++ b/usr/src/tools/scripts/ws.sh Thu Mar 22 15:26:42 2012 -0400 @@ -82,8 +82,8 @@ # check if it exists or not, we never did for Teamware, # since it might appear later anyway. # - if [[ "${proto##ssh://}" == "$proto" -a \ - "${proto##http://}" == "$proto" -a \ + if [[ "${proto##ssh://}" == "$proto" && \ + "${proto##http://}" == "$proto" && \ "${proto##https://}" == "$proto" ]]; then echo "${proto}/root_${MACH}" fi @@ -159,8 +159,8 @@ # # Checking for CODEMGR_WSPATH # -if [[ "(" "${CODEMGR_WSPATH}x" != "x" ")" -a "(" ! -d $wsname ")" -a \ - "(" `expr "$wsname" : "\/"` = "0" ")" ]] +if [[ -n ${CODEMGR_WSPATH} && ( ! -d $wsname ) && \ + ( `expr "$wsname" : "\/"` = "0" ) ]] then ofs=$IFS IFS=": " @@ -217,15 +217,15 @@ SRC=$wsname/usr/src; export SRC TSRC=$wsname/usr/ontest; export TSRC -if [[ "$SCM_MODE" = "teamware" -a -d ${wsname}/Codemgr_wsdata ]]; then +if [[ "$SCM_MODE" = "teamware" && -d ${wsname}/Codemgr_wsdata ]]; then CM_DATA="Codemgr_wsdata" wsosdir=$CODEMGR_WS/$CM_DATA/sunos protofile=$wsosdir/protodefs -elif [[ "$SCM_MODE" = "mercurial" -a -d ${wsname}/.hg ]]; then +elif [[ "$SCM_MODE" = "mercurial" && -d ${wsname}/.hg ]]; then CM_DATA=".hg" wsosdir=$CODEMGR_WS/$CM_DATA protofile=$wsosdir/org.opensolaris.protodefs -elif [[ "$SCM_MODE" = "git" -a -d ${wsname}/.git ]]; then +elif [[ "$SCM_MODE" = "git" && -d ${wsname}/.git ]]; then CM_DATA=".git" wsosdir=$CODEMGR_WS/$CM_DATA protofile=$wsosdir/org.opensolaris.protodefs