It doesn't work because 'cvsdir' never gets set to something else than "/doesnotexist". Attached patch fixes the problem by making it a global in do_checkout() and moving the assignment behind the calling of that function.
~ L. -- NEW homepage: https://viridian.dnsalias.net/~sky/homepage/ gpg --keyserver pgp.mit.edu --recv-keys DD4EBF83
Index: import-gnulib.sh
===================================================================
RCS file: /sources/findutils/findutils/import-gnulib.sh,v
retrieving revision 1.31
diff -u -r1.31 import-gnulib.sh
--- import-gnulib.sh 24 Mar 2007 15:15:58 -0000 1.31
+++ import-gnulib.sh 28 Mar 2007 20:15:19 -0000
@@ -53,7 +53,7 @@
do_checkout () {
- local cvsdir="$1"
+ cvsdir="$1"
echo checking out gnulib from CVS in $cvsdir
if [ -z "$gnulib_version" ] ; then
@@ -198,8 +197,8 @@
## If -d was not given, do CVS checkout/update
if [ $need_checkout = yes ] ; then
- gnulibdir="$cvsdir"/gnulib
do_checkout gnulib-cvs
+ gnulibdir="$cvsdir"/gnulib
else
echo "Warning: using gnulib code which already exists in $gnulibdir"
>&2
fi
pgpFdViRNjRDc.pgp
Description: PGP signature
_______________________________________________ Bug-findutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-findutils
