]>
Dogcows Code - chaz/tar/blob - bootstrap
4fd76d369c80223039c4d058e9585087b3266d14
3 # Bootstrap 'tar' from CVS.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22 # Written by Paul Eggert.
30 echo "$0: usage: $0 [--gnulib-srcdir=DIR][--cvs-auth=AUTH-METHOD][--cvs-user=USERNAME]"
33 GNULIB_SRCDIR
=`expr "$1" : '--gnulib-srcdir=\(.*\)'`;;
35 CVS_AUTH
=`expr "$1" : '--cvs-auth=\(.*\)'`;;
37 CVS_USER
=`expr "$1" : '--cvs-user=\(.*\)'`;;
39 echo >&2 "$0: $option: unknown option"
44 echo "$0: Bootstrapping CVS tar..."
48 if [ "${2}" != - ]; then
49 CVS_PREFIX
=${CVS_PREFIX}${2}@
55 case ${GNULIB_SRCDIR--} in
57 if [ ! -d gnulib
]; then
58 echo "$0: getting gnulib files..."
61 trap 'rm -fr gnulib; exit 1' 0
63 case "${CVS_AUTH--}" in
66 pserver
) build_cvs_prefix
$CVS_AUTH ${CVS_USER:-anoncvs};;
68 build_cvs_prefix
$CVS_AUTH ${CVS_USER--};;
70 build_cvs_prefix
$CVS_AUTH ${CVS_USER--};;
71 *) echo "$0: Unknown CVS access method" >&2
74 if [ "${CVS_AUTH--}" = "pserver" ]; then
75 cvs
-d ${CVS_PREFIX}subversions.gnu.org
:/cvsroot
/gnulib login
|| exit
77 cvs
-q -d ${CVS_PREFIX}subversions.gnu.org
:/cvsroot
/gnulib co gnulib
|| exit
84 <$GNULIB_SRCDIR/gnulib
-tool || exit
123 previous_gnulib_modules
=
124 while [ "$gnulib_modules" != "$previous_gnulib_modules" ]; do
125 previous_gnulib_modules
=$gnulib_modules
127 (echo "$gnulib_modules"
128 for gnulib_module in $gnulib_modules; do
129 $GNULIB_SRCDIR/gnulib-tool --extract-dependencies $gnulib_module
135 (for gnulib_module in $gnulib_modules; do
136 $GNULIB_SRCDIR/gnulib-tool --extract-filelist $gnulib_module
140 gnulib_dirs
=`echo "$gnulib_files" | sed 's,/[^/]*$,,' | sort -u`
141 mkdir -p $gnulib_dirs || exit
143 for gnulib_file
in $gnulib_files; do
147 m
4/codeset.
m4) continue;;
148 m
4/glibc21.
m4) continue;;
149 m
4/intdiv0.
m4) continue;;
150 m
4/inttypes_h.
m4) continue;;
151 m
4/inttypes.
m4) continue;;
152 m
4/inttypes
-pri.
m4) continue;;
153 m
4/isc
-posix.
m4) continue;;
154 m
4/lcmessage.
m4) continue;;
155 m
4/onceonly_2_57.
m4) dest
=m
4/onceonly.
m4;;
159 echo "$0: Copying file $GNULIB_SRCDIR/$gnulib_file" &&
160 cp -p $GNULIB_SRCDIR/$gnulib_file $dest || exit
166 echo "$0: getting translations into po..."
168 rm -f dummy
`ls | sed -n '/\.gmo$/p; /\.po/p'` &&
169 wget
-nv -nd -r -l 1 -A .po
-C off \
170 http
://www.iro.umontreal.ca
/contrib
/po
/maint
/tar
/ &&
171 ls *.po
| sed 's/\.po$//' >LINGUAS
175 # Reconfigure, getting other files.
177 echo "$0: autoreconf --verbose --install --force ..."
178 autoreconf
--verbose --install --force
181 echo "$0: done. Now you can run './configure'."
This page took 0.043204 seconds and 4 git commands to generate.