Missing inversion in Makefile (ee9be06)

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

 



Hi,

In ee9be06 (perl: detect new files in MakeMaker builds, 2012-07-27) there is a step to detect if there has been an update to the PM.* files, however it appears that the logic is inverted in the comparison.

I need some extra eye's on this to be sure I have it right (I'm trying to debug an old Windows breakage...).

The resultant output of a make dry run included (on my m/c)..:

 find perl -type f -name '*.pm' | sort >perl/PM.stamp+ && \
{ cmp perl/PM.stamp+ perl/PM.stamp >/dev/null 2>/dev/null || mv perl/PM.stamp+ perl/PM.stamp; } && \
  rm -f perl/PM.stamp+
make -C perl PERL_PATH='/usr/bin/perl' prefix='/c/Documents and Settings/Philip' perl.mak

Shouldn't it be `{ ! cmp ` so that when the files are not identical, the move is performed?

https://github.com/git/git/blob/ee9be06770223238c6a22430eb874754dd22dfb0/Makefile#L2097

the code is now at https://github.com/git/git/blob/master/Makefile#L1697

I'd guess that this was something that was tricky to test as once it works it stays working.

On a clean Msysgit development install the PM.stamp file does not exist and the cmp exits with error code 2, while identical files return 0.

Msysgit list also copied should someone there have seen this before.
--
Philip
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]