[BACK]Return to oxfetch.sh CVS log [TXT][DIR] Up to [local] / OpenXM / src / util

Diff for /OpenXM/src/util/oxfetch.sh between version 1.9 and 1.10

version 1.9, 2015/02/21 06:20:36 version 1.10, 2016/06/05 13:53:34
Line 1 
Line 1 
 #!/bin/sh  #!/bin/sh
 # $OpenXM: OpenXM/src/util/oxfetch.sh,v 1.8 2007/12/10 16:02:37 iwane Exp $  # $OpenXM: OpenXM/src/util/oxfetch.sh,v 1.9 2015/02/21 06:20:36 ohara Exp $
   
 MASTER_SITES="http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/"  MASTER_SITES="http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/"
 fetch="wget --no-directories --passive-ftp --timestamping"  fetch="wget --no-directories --passive-ftp --timestamping"
   curl="curl --remote-name --remote-time"
 url=$1  url=$1
 distdir=${2:-.}  distdir=${2:-.}
 distinfo=${3:-./distinfo}  distinfo=${3:-./distinfo}
Line 20  _mkdir () {
Line 21  _mkdir () {
 }  }
   
 _fetch () {  _fetch () {
       if ! which wget > /dev/null 2>&1; then fetch="${curl}"; fi
     if [ "$distfile" != "" -a ! -f "$distdir/$distfile" ]; then      if [ "$distfile" != "" -a ! -f "$distdir/$distfile" ]; then
         (cd $distdir; $fetch $url)          (cd $distdir; $fetch $url)
     fi      fi

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>