X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=gnulib-tool;h=757ad7c8e8fcbfa3e5b75634b4027c4451732a1a;hb=569c14694b09263fe3238b3a68b6a48535e1599f;hp=0bc390891c384ecc5585f43d473c254f729c84ef;hpb=d2307f91c742df258b25eca6ede380bb3d6e1a34;p=gnulib.git diff --git a/gnulib-tool b/gnulib-tool index 0bc390891..757ad7c8e 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -22,7 +22,7 @@ progname=$0 package=gnulib -cvsdatestamp='$Date: 2005-09-02 11:18:48 $' +cvsdatestamp='$Date: 2005-09-05 11:40:42 $' last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'` version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'` @@ -988,7 +988,7 @@ func_import () # frequently that developers don't put autogenerated files into CVS. echo "Copying file $g2" test -n "$dry_run" && dry=echo - if test -z "$symbolic" && cmp "$gnulib_dir/$f2" "$destdir/$g2.tmp"; then + if test -n "$symbolic" && cmp "$gnulib_dir/$f2" "$destdir/$g2.tmp" > /dev/null; then func_ln_if_changed "$gnulib_dir/$f2" "$destdir/$g2" else $dry mv -f "$destdir/$g2.tmp" "$destdir/${g2}" || func_fatal_error "failed" @@ -1013,7 +1013,7 @@ func_import () if test -n "$libtool"; then actioncmd="$actioncmd --libtool" fi - actioncmd="$actioncmd -macro-prefix=$macro_prefix" + actioncmd="$actioncmd --macro-prefix=$macro_prefix" actioncmd="$actioncmd `echo $specified_modules`" # Create lib/Makefile.am. @@ -1485,6 +1485,12 @@ case $mode in if test -n "$m4base"; then # Apply func_import to a particular gnulib directory. # Any number of additional modules can be given. + if test ! -f "$destdir/$m4base"/gnulib-cache.m4; then + # First use of gnulib in the given m4base. + test -n "$supplied_libname" || supplied_libname=true + test -n "$sourcebase" || sourcebase="lib" + test -n "$macro_prefix" || macro_prefix="gl" + fi func_import "$*" else # Apply func_import to all gnulib directories.