[openssh-commits] [openssh] 01/02: Remove use of tail for 'make depend'.

git+noreply at mindrot.org git+noreply at mindrot.org
Sat May 2 18:35:07 AEST 2020


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 83657eac42941f270c4b02b2c46d9a21f616ef99
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Sat May 2 18:29:40 2020 +1000

    Remove use of tail for 'make depend'.
    
    Not every tail supports +N and we can do with out it so just remove it.
    Prompted by mforney at mforney.org.
---
 Makefile.in | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 304d96cd..cf9c9b38 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -350,10 +350,11 @@ depend: depend-rebuild
 	rm -f .depend.bak
 
 depend-rebuild:
-	rm -f config.h
-	touch config.h
+	rm -f config.h .depend
+	touch config.h .depend
 	makedepend -w1000 -Y. -f .depend *.c 2>/dev/null
-	(head -2 .depend; tail +3 .depend | sort) >.depend.tmp
+	(echo '# Automatically generated by makedepend.'; \
+	 echo '# Run "make depend" to rebuild.'; sort .depend ) >.depend.tmp
 	mv .depend.tmp .depend
 	rm -f config.h
 

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list