]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
gettext-tools: Make convert-archive more portable
authorDaiki Ueno <ueno@gnu.org>
Sun, 31 Aug 2014 22:34:54 +0000 (07:34 +0900)
committerDaiki Ueno <ueno@gnu.org>
Sun, 31 Aug 2014 22:34:54 +0000 (07:34 +0900)
* convert-archive.in: Don't use non-portable 'if ! COMMAND'.
Reported by Stefano Lattarini in:
<https://lists.gnu.org/archive/html/bug-gettext/2011-07/msg00002.html>.

gettext-tools/misc/ChangeLog
gettext-tools/misc/convert-archive.in

index 4fec55987dffd84fb4c05806cc1b36eb52a40bd4..7f33358e3bf802ba8bd886822ade946007c15a1d 100644 (file)
@@ -1,3 +1,9 @@
+2014-09-01  Daiki Ueno  <ueno@gnu.org>
+
+       * convert-archive.in: Don't use non-portable 'if ! COMMAND'.
+       Reported by Stefano Lattarini in:
+       <https://lists.gnu.org/archive/html/bug-gettext/2011-07/msg00002.html>.
+
 2014-07-14  Daiki Ueno  <ueno@gnu.org>
 
        * gettext 0.19.2 released.
index 0088576bf7918601d731c730838bc83bf1faa62e..e48f20b7db302a35fdedfec99a5e42d9b8d5366f 100644 (file)
@@ -64,9 +64,11 @@ func_fatal_error ()
 
 # Command-line option processing.
 
-if { { test $# = 2 || test $# = 3 || test $# = 4; } \
+if { { test $# = 2 || test $# = 3 || test $# = 4; } \
        && case "$1" in dir | cvs | git ) true;; *) false;; esac \
        && case "$2" in dir | cvs | git ) true;; *) false;; esac; }; then
+  :
+else
   echo "Usage: convert-archive {dir|cvs|git} {dir|cvs|git} [fromfile [tofile]]"
   exit 1
 fi