gnulib-tool-py
[Top][All Lists]
Advanced

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

Re: [gnulib-tool-py] if false


From: Bruno Haible
Subject: Re: [gnulib-tool-py] if false
Date: Mon, 13 Aug 2012 12:58:01 +0200
User-agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; )

Hi Dmitriy,

> Recently I've found the following lines:
> 
> echo "Update $m4base/gnulib-cache.m4 (backup in $m4base/gnulib-cache.m4~)"
> if false; then
>   cat "$tmpfile"
>   echo
>   echo "# gnulib-cache.m4 does here"
> 
> Under which circumstances we will do cat?

We will never do the 'cat "$tmpfile"' command. An 'if false' is like an
'if False:' in Python: it's a way to comment out blocks of code that were
in use at some time but are now disabled.

In this case, these are debugging statements, that you can just drop.

There is another occurrence of  'if false && test ...' - this too is never
executed; here the code is a leftover from a 2006-10-12 commit. It can be
dropped as well.

Bruno




reply via email to

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