diff options
author | Richard Lowe <richlowe@richlowe.net> | 2012-03-22 15:26:42 -0400 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2012-03-22 15:33:42 -0400 |
commit | 0d1214447907694b587ab1b1091041a10887a942 (patch) | |
tree | bcda1dceeec27f46a75ce5eabae9ec3c2ee70379 /usr/src/tools | |
parent | efc44fd77cb81028389b8598b063646228f9e1d0 (diff) | |
download | illumos-joyent-0d1214447907694b587ab1b1091041a10887a942.tar.gz |
1960 developer tools should support git (fix ws)
Diffstat (limited to 'usr/src/tools')
-rw-r--r-- | usr/src/tools/scripts/ws.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr/src/tools/scripts/ws.sh b/usr/src/tools/scripts/ws.sh index 76440bb552..7f9f36a7cc 100644 --- a/usr/src/tools/scripts/ws.sh +++ b/usr/src/tools/scripts/ws.sh @@ -82,8 +82,8 @@ check_proto() # 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 @@ unset tmpwsname # # 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 @@ CODEMGR_WS=$wsname ; export CODEMGR_WS 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 |