[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] gnulib-tool buglets

From: Karl Berry
Subject: [Bug-gnulib] gnulib-tool buglets
Date: Wed, 1 Jan 2003 10:01:08 -0500

I made three minor changes to gnulib-tool.  First, I got this error on
every invocation:

$ gnulib-tool --list
sed: -e expression #1, char 22: multiple number options to `s' command

which comes from this line:
last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$Date: 2003/01/01 
14:51:23 $,,'`
which I changed to:
last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
to avoid the expansion of $Date$, which I think was the intent.
Now the --version output looks better.

Second, I said
  gnulib-tool --create-testdir --dir . mkstemp tempname
and it said:
mkdir: cannot create directory `.': File exists
gnulib-tool: *** could not create destination directory

So I changed this line:
  mkdir "$destdir" || func_fatal_error "could not create destination directory"
to this:
  mkdir "$destdir"
  test -d "$destdir" \
    || func_fatal_error "could not create destination directory"

Third, when I said
  gnulib-tool --create-testdir --dir foo . mkstemp tempname
it also said:
gnulib-tool: module  doesn't exist
So I changed:
    echo "gnulib-tool: module $1 doesn't exist" 1>&2
    echo "gnulib-tool: module $module doesn't exist" 1>&2

P.S. This is great, Bruno.  Thanks so much for all the work.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]