From eb485afc454fbb987f2953a43705ae439cf441f5 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer <akohlmey@gmail.com> Date: Wed, 9 May 2018 16:32:28 -0400 Subject: [PATCH] fix logic bug that would not create lmpinstalledpkgs.h when there was none --- src/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 7e19070c90..86597ae42e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -169,8 +169,10 @@ help: @for p in $(PACKAGEUC) $(PACKUSERUC); do info=$$($(SHELL) Package.sh $$p installed); \ [ -n "$$info" ] && echo "\"$$info\"" | sed -e 's/".*package/"/' >> lmpinstalledpkgs.tmp || :; done @echo ';' >> lmpinstalledpkgs.tmp - @test "`diff --brief lmpinstalledpkgs.tmp lmpinstalledpkgs.h`" != "" && \ - mv lmpinstalledpkgs.tmp lmpinstalledpkgs.h || rm lmpinstalledpkgs.tmp + @if [ -f lmpinstalledpkgs.h ]; \ + then test "`diff --brief lmpinstalledpkgs.tmp lmpinstalledpkgs.h`" != "" && \ + mv lmpinstalledpkgs.tmp lmpinstalledpkgs.h || rm lmpinstalledpkgs.tmp ; \ + else mv lmpinstalledpkgs.tmp lmpinstalledpkgs.h ; fi @if [ -f MAKE/MACHINES/Makefile.$@ ]; \ then cp MAKE/MACHINES/Makefile.$@ $(objdir)/Makefile; fi @if [ -f MAKE/OPTIONS/Makefile.$@ ]; \ -- GitLab