Eric Blake wrote:
> 2006-07-10  Eric Blake  <[EMAIL PROTECTED]>
> 
>       * gnulib-tool: Avoid space-tab.
>       (--doc-base): Add new option, for where .texi files should live.

Sometimes, this creates an empty doc directory. I'm fixing this:


2006-07-29  Bruno Haible  <[EMAIL PROTECTED]>

        * gnulib-tool (func_import): Don't create the $docbase directory if
        there is no file to store there.

*** gnulib-tool.bak     2006-07-29 00:53:03.000000000 +0200
--- gnulib-tool 2006-07-29 02:59:47.000000000 +0200
***************
*** 1116,1127 ****
        echo "Create directory $destdir/$m4base"
      fi
    fi
!   if test ! -d "$destdir/$docbase"; then
!     if $doit; then
!       echo "Creating directory $destdir/$docbase"
!       mkdir "$destdir/$docbase" || func_fatal_error "failed"
!     else
!       echo "Create directory $destdir/$docbase"
      fi
    fi
    if test -n "$inctests"; then
--- 1182,1196 ----
        echo "Create directory $destdir/$m4base"
      fi
    fi
!   docfiles=`echo "$files" | sed -n -e 's,^doc/,,p'`
!   if test -n "$docfiles"; then
!     if test ! -d "$destdir/$docbase"; then
!       if $doit; then
!         echo "Creating directory $destdir/$docbase"
!         mkdir "$destdir/$docbase" || func_fatal_error "failed"
!       else
!         echo "Create directory $destdir/$docbase"
!       fi
      fi
    fi
    if test -n "$inctests"; then


Reply via email to