pike.git / NT / init_nt

version» Context lines:

pike.git/NT/init_nt:1:   #!/bin/sh    - #This can be 'sprsh' or 'wine' + #This can be 'sprsh', 'wine' or 'cygwin'   REMOTE_METHOD=sprsh      # Choose 'rntcc' for Watcom or 'rntcl' for Microsoft VC++   # (Make sure VC++ is before Watcom in your path!)   CC=${CC-rntcl}      # Edit   NTHOST=${NTHOST-10.0.5.13}   NTDRIVE=${NTDRIVE-k:}   
pike.git/NT/init_nt:50:    REMOTE_VARIABLES="   path=$watcom\\binnt;$watcom\\binw;   include=$watcom\\h;$watcom\\h\\nt;$local\\h   lib=$watcom\\lib386;$local\\lib   "    export REMOTE_VARIABLES    ;;   esac       - # Don't edit + # Don't edit anything below this point..      case /$0 in    */init_nt)    # We were executed we can find the path!    base=`echo $0 | sed -e 's@/init_nt@@'`    base=`(test "x$base" != "x" && cd $base ; /bin/pwd)`    ;;       *)    # We were sourced, we cannot find the path...    base=`pwd`    ;;   esac    -  + if [ "x$OSTYPE" = xcygwin32 ]; then +  REMOTE_METHOD=cygwin +  driveletter=`echo $base | sed -e 's@^//\(.\)/.*@\1@` +  if [ "x$driveletter" != "x" ]; then +  NTDRIVE=${driveletter}: +  NTMOUNT="//$driveletter" +  fi +  mkdir $base/cygtools 2>/dev/null || : +  ( +  cd $base/tools +  cp rntcc rntcl ar nm ranlib uname bash-fixup sprsh lib lib.pike $base/cygtools || : +  ) +  SHELL=bash +  +  NT_TOOL_PATH=$base/cygtools + else    NT_TOOL_PATH=$base/tools -  + fi    -  +  +    export NT_TOOL_PATH      if [ ! -d "$NT_TOOL_PATH" ]; then    echo Unable to find NT tools!    return    exit   fi      case :$PATH: in    *:$NT_TOOL_PATH:*) ;;    *) PATH=$NT_TOOL_PATH:$PATH ;;   esac      NTTOOLS=$NT_TOOL_PATH/lib    -  +    if [ "x$NTMOUNT" = x ]; then    MNTREPLACE=""    PIKE_PATH_TRANSLATE=""   else    MNTREPLACE="s@$NTMOUNT@@g   "    PIKE_PATH_TRANSLATE="s!^$NTMOUNT!$NTDRIVE!"   fi   IFS='   '