public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olh@suse.de>
To: Marcelo Tosatti <marcelo@conectiva.com.br>,
	David Engebretsen <engebret@us.ibm.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] 2.4.21-rc2 syntax error in toplevel Makefile
Date: Sun, 18 May 2003 12:47:18 +0200	[thread overview]
Message-ID: <20030518104718.GA9425@suse.de> (raw)

The used syntax is obsolete since a while.
Update two places to the correct syntax.

Please apply for 2.4.21.


nectarine:/ # tail -1
tail: `-1' option is obsolete; use `-n 1'
Try `tail --help' for more information.
nectarine:/ # tail --version
tail (coreutils) 5.0
Written by Paul Rubin, David MacKenzie, Ian Lance Taylor, and Jim Meyering.

Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


diff -purN linux-2.4.21-rc2/Makefile linux-2.4.21-rc2.tail/Makefile
--- linux-2.4.21-rc2/Makefile	2003-05-18 12:39:41.000000000 +0200
+++ linux-2.4.21-rc2.tail/Makefile	2003-05-18 12:37:05.000000000 +0200
@@ -342,7 +342,7 @@ include/linux/compile.h: $(CONFIGURATION
 	 ([ -x /bin/domainname ] && /bin/domainname > .ver1) || \
 	 echo > .ver1
 	@echo \#define LINUX_COMPILE_DOMAIN \"`cat .ver1 | $(uts_truncate)`\" >> .ver
-	@echo \#define LINUX_COMPILER \"`$(CC) $(CFLAGS) -v 2>&1 | tail -1`\" >> .ver
+	@echo \#define LINUX_COMPILER \"`$(CC) $(CFLAGS) -v 2>&1 | tail -n 1`\" >> .ver
 	@mv -f .ver $@
 	@rm -f .ver1
 
diff -purN linux-2.4.21-rc2/arch/ppc64/boot/Makefile linux-2.4.21-rc2.tail/arch/ppc64/boot/Makefile
--- linux-2.4.21-rc2/arch/ppc64/boot/Makefile	2003-05-18 12:39:42.000000000 +0200
+++ linux-2.4.21-rc2.tail/arch/ppc64/boot/Makefile	2003-05-18 12:37:46.000000000 +0200
@@ -90,7 +90,7 @@ addnote: addnote.c
 
 imagesize.c: $(TOPDIR)/vmlinux
 	ls -l $(TOPDIR)/vmlinux | awk '{printf "/* generated -- do not edit! */\nunsigned long vmlinux_filesize = %d;\n", $$5}' > imagesize.c
-	$(CROSS_COMPILE)nm -n $(TOPDIR)/vmlinux | tail -1 | awk '{printf "unsigned long vmlinux_memsize = 0x%s;\n", substr($$1,8)}' >> imagesize.c
+	$(CROSS_COMPILE)nm -n $(TOPDIR)/vmlinux | awk '{i=$$1}END{printf "unsigned long vmlinux_memsize = 0x%s;\n", substr(i,8)}' >> imagesize.c
 
 zImage.o: $(TOPDIR)/vmlinux
 
-- 
USB is for mice, FireWire is for men!

                 reply	other threads:[~2003-05-18 12:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030518104718.GA9425@suse.de \
    --to=olh@suse.de \
    --cc=engebret@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox