bug-gnulib
[Top][All Lists]
Advanced

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

Re: gnulib-tool: new options --add-import, --remove-import


From: Bruno Haible
Subject: Re: gnulib-tool: new options --add-import, --remove-import
Date: Sat, 4 Sep 2010 20:29:49 +0200
User-agent: KMail/1.9.9

>       * NEWS: Mention the change.

A NEWS entry is maybe not enough for such a change that will affect many
users. I'm adding one more migration aid:


2010-09-04  Bruno Haible  <address@hidden>

        gnulib-tool: Help migration from --import to --add-import or --update.
        * gnulib-tool: Emit a verbose error message when --import is used
        without any module name.

*** gnulib-tool.orig    Sat Sep  4 20:27:56 2010
--- gnulib-tool Sat Sep  4 20:26:34 2010
***************
*** 1235,1240 ****
--- 1235,1253 ----
        func_exit 1
      fi
    fi
+   # This code helps migrating from --import to --add-import or --update. It 
can
+   # be removed on 2012-01-01.
+   if test "$mode" = import && test $# = 0; then
+     echo "gnulib-tool: cowardly refusing to erase the module list." 1>&2
+     echo "The meaning of the option '--import' has changed." 1>&2
+     echo "See the documentation at" 1>&2
+     echo 
"<http://www.gnu.org/software/gnulib/manual/html_node/Modified-imports.html>." 
1>&2
+     echo "For updating to a newer version of gnulib, use" 1>&2
+     echo "  gnulib-tool --add-import" 1>&2
+     echo "For restoring files that were omitted from version control, use" 
1>&2
+     echo "  gnulib-tool --update" 1>&2
+     func_exit 1
+   fi
    if test "$mode" = update; then
      if test $# != 0; then
        echo "gnulib-tool: too many arguments in 'update' mode" 1>&2



reply via email to

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