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]"
33 GNULIB_SRCDIR=`expr "$1" : '--gnulib-srcdir=\(.*\)'`;;
35 echo >&2 "$0: $option: unknown option"
41 echo "$0: Bootstrapping CVS tar..."
46 echo "$0: getting gnulib files..."
48 case ${GNULIB_SRCDIR--} in
50 if [ ! -d gnulib ]; then
52 trap 'rm -fr gnulib; exit 1' 0
53 cvs -q -d savannah.gnu.org:/cvsroot/gnulib co gnulib || exit
59 <$GNULIB_SRCDIR/gnulib-tool || exit
98 previous_gnulib_modules=
99 while [ "$gnulib_modules" != "$previous_gnulib_modules" ]; do
100 previous_gnulib_modules=$gnulib_modules
102 (echo "$gnulib_modules"
103 for gnulib_module in $gnulib_modules; do
104 $GNULIB_SRCDIR/gnulib-tool --extract-dependencies $gnulib_module
110 (for gnulib_module in $gnulib_modules; do
111 $GNULIB_SRCDIR/gnulib-tool --extract-filelist $gnulib_module
115 gnulib_dirs=`echo "$gnulib_files" | sed 's,/[^/]*$,,' | sort -u`
116 mkdir -p $gnulib_dirs || exit
118 for gnulib_file in $gnulib_files; do
122 m4/codeset.m4) continue;;
123 m4/glibc21.m4) continue;;
124 m4/intdiv0.m4) continue;;
125 m4/inttypes_h.m4) continue;;
126 m4/inttypes.m4) continue;;
127 m4/inttypes-pri.m4) continue;;
128 m4/isc-posix.m4) continue;;
129 m4/lcmessage.m4) continue;;
130 m4/onceonly_2_57.m4) dest=m4/onceonly.m4;;
134 echo "$0: Copying file $GNULIB_SRCDIR/$gnulib_file" &&
135 cp -p $GNULIB_SRCDIR/$gnulib_file $dest || exit
141 echo "$0: getting translations into po..."
143 rm -f dummy `ls | sed -n '/\.gmo$/p; /\.po/p'` &&
144 wget -nv -nd -r -l 1 -A .po -C off \
145 http://www.iro.umontreal.ca/contrib/po/maint/tar/ &&
146 ls *.po | sed 's/\.po$//' >LINGUAS
150 # Reconfigure, getting other files.
152 echo "$0: autoreconf --verbose --install --force ..."
153 autoreconf --verbose --install --force
156 echo "$0: done. Now you can run './configure'."