/[tar]/tar/bootstrap
ViewVC logotype

Diff of /tar/bootstrap

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by gray, Wed Sep 17 10:19:01 2003 UTC revision 1.6 by gray, Wed Sep 17 12:37:58 2003 UTC
# Line 41  for option; do Line 41  for option; do
41    esac    esac
42  done  done
43    
44    echo "$0: Bootstrapping CVS tar..."
45    
46  build_cvs_prefix() {  build_cvs_prefix() {
47    CVS_PREFIX=:${1}:    CVS_PREFIX=:${1}:
48    if [ "${2}" != - ]; then    if [ "${2}" != - ]; then
# Line 48  build_cvs_prefix() { Line 50  build_cvs_prefix() {
50    fi    fi
51  }  }
52    
 case "${CVS_AUTH--}" in  
 -)       : ${CVS_RSH:?}  
          CVS_PREFIX="";;  
 pserver) build_cvs_prefix $CVS_AUTH ${CVS_USER:-anoncvs};;  
 gserver|server)  
          build_cvs_prefix $CVS_AUTH ${CVS_USER--};;  
 ext)     : ${CVS_RSH:?}  
          build_cvs_prefix $CVS_AUTH ${CVS_USER--};;  
 *)       echo "$0: Unknown CVS access method" >&2  
          exit 1;;  
 esac  
   
 echo "$0: Bootstrapping CVS tar..."  
   
   
53  # Get gnulib files.  # Get gnulib files.
54    
 echo "$0: getting gnulib files..."  
   
55  case ${GNULIB_SRCDIR--} in  case ${GNULIB_SRCDIR--} in
56  -)  -)
57    if [ ! -d gnulib ]; then    if [ ! -d gnulib ]; then
58        echo "$0: getting gnulib files..."
59    
60      trap exit 1 2 13 15      trap exit 1 2 13 15
61      trap 'rm -fr gnulib; exit 1' 0      trap 'rm -fr gnulib; exit 1' 0
62            
63        case "${CVS_AUTH--}" in
64        -)       : ${CVS_RSH:?}
65                 CVS_PREFIX="";;
66        pserver) build_cvs_prefix $CVS_AUTH ${CVS_USER:-anoncvs};;
67        gserver|server)
68                 build_cvs_prefix $CVS_AUTH ${CVS_USER--};;
69        ext)     : ${CVS_RSH:?}
70                 build_cvs_prefix $CVS_AUTH ${CVS_USER--};;
71        *)       echo "$0: Unknown CVS access method" >&2
72                 exit 1;;
73        esac
74      if [ "${CVS_AUTH--}" = "pserver" ]; then      if [ "${CVS_AUTH--}" = "pserver" ]; then
75        cvs -d ${CVS_PREFIX}subversions.gnu.org:/cvsroot/gnulib login || exit        cvs -d ${CVS_PREFIX}subversions.gnu.org:/cvsroot/gnulib login || exit
76      fi      fi
77      cvs -q -d ${CVS_PREFIX}subversions.gnu.org:/cvsroot/gnulib co gnulib  || exit      cvs -q -d ${CVS_PREFIX}subversions.gnu.org:/cvsroot/gnulib co gnulib || exit
78    
79      trap 0      trap 0
80    fi    fi
81    GNULIB_SRCDIR=gnulib    GNULIB_SRCDIR=gnulib

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26