Skip to contentSkip to conversation

Change tail -1 to tail -n1 in build

PATCH New Anthony Liguori 1 participant 1 message Jul 15, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Change tail -1 to tail -n1 in build

The build of Xen currently reports (with coreutils 5.2.1):

tail: -1' option is obsolete; use -n 1' since this will be removed in the future

Attached patch changes Makefile to use -n instead of deprecated syntax.

Regards,

Anthony Liguori

xen/Makefile +1 -1
diff -r a83ac0806d6b xen/Makefile
@@ -96,7 +96,7 @@
 	    -e 's/@@whoami@@/$(shell whoami)/g' \
 	    -e 's/@@domain@@/$(shell ([ -x /bin/dnsdomainname ] && /bin/dnsdomainname) || ([ -x /bin/domainname ] && /bin/domainname || echo [unknown]))/g' \
 	    -e 's/@@hostname@@/$(shell hostname)/g' \
-	    -e 's/@@compiler@@/$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -1)/g' \
+	    -e 's/@@compiler@@/$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -n1)/g' \
 	    -e 's/@@version@@/$(XEN_VERSION)/g' \
 	    -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \
 	    -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel