changeset 1604:bc88a3357a79

Update usage of 'tail' command for new (pickier) version - from Jani Monoses
author gthomas
date Thu, 22 Apr 2004 15:26:20 +0000
parents 477800186bef
children 43a89c18d005
files packages/hal/arm/aeb/current/ChangeLog packages/hal/arm/aeb/current/cdl/hal_arm_aeb.cdl packages/hal/arm/arch/current/ChangeLog packages/hal/arm/arch/current/cdl/hal_arm.cdl packages/hal/arm/e7t/current/ChangeLog packages/hal/arm/e7t/current/cdl/hal_arm_e7t.cdl packages/hal/arm/edb7xxx/current/ChangeLog packages/hal/arm/edb7xxx/current/cdl/hal_arm_edb7xxx.cdl packages/hal/arm/gps4020/current/ChangeLog packages/hal/arm/gps4020/current/cdl/hal_arm_gps4020.cdl packages/hal/arm/integrator/current/ChangeLog packages/hal/arm/integrator/current/cdl/hal_arm_integrator.cdl packages/hal/arm/pid/current/ChangeLog packages/hal/arm/pid/current/cdl/hal_arm_pid.cdl packages/hal/calmrisc16/arch/current/ChangeLog packages/hal/calmrisc16/arch/current/cdl/hal_calm16.cdl packages/hal/calmrisc16/core/current/ChangeLog packages/hal/calmrisc16/core/current/cdl/hal_calm16_core.cdl packages/hal/calmrisc32/arch/current/ChangeLog packages/hal/calmrisc32/arch/current/cdl/hal_calm32.cdl packages/hal/calmrisc32/core/current/ChangeLog packages/hal/calmrisc32/core/current/cdl/hal_calm32_core.cdl packages/hal/common/current/ChangeLog packages/hal/common/current/cdl/hal.cdl packages/hal/frv/arch/current/ChangeLog packages/hal/frv/arch/current/cdl/hal_frv.cdl packages/hal/frv/frv400/current/ChangeLog packages/hal/frv/frv400/current/cdl/hal_frv_frv400.cdl packages/hal/h8300/arch/current/ChangeLog packages/hal/h8300/arch/current/cdl/hal_h8300.cdl packages/hal/h8300/h8300h/current/ChangeLog packages/hal/h8300/h8300h/current/cdl/hal_h8300_h8300h.cdl packages/hal/h8300/h8s/current/ChangeLog packages/hal/h8300/h8s/current/cdl/hal_h8300_h8s.cdl packages/hal/i386/arch/current/ChangeLog packages/hal/i386/arch/current/cdl/hal_i386.cdl packages/hal/i386/pc/current/ChangeLog packages/hal/i386/pc/current/cdl/hal_i386_pc.cdl packages/hal/m68k/arch/current/ChangeLog packages/hal/m68k/arch/current/cdl/hal_m68k.cdl packages/hal/m68k/mcf52xx/var/current/ChangeLog packages/hal/m68k/mcf52xx/var/current/cdl/hal_m68k_mcf52xx.cdl packages/hal/mips/arch/current/ChangeLog packages/hal/mips/arch/current/cdl/hal_mips.cdl packages/hal/mips/idt32334/current/ChangeLog packages/hal/mips/idt32334/current/cdl/hal_mips_idt32334.cdl packages/hal/mips/malta/current/ChangeLog packages/hal/mips/malta/current/cdl/hal_mips_malta.cdl packages/hal/mips/mips32/current/ChangeLog packages/hal/mips/mips32/current/cdl/hal_mips_mips32.cdl packages/hal/mips/mips64/current/ChangeLog packages/hal/mips/mips64/current/cdl/hal_mips_mips64.cdl packages/hal/mips/ref4955/current/ChangeLog packages/hal/mips/ref4955/current/cdl/hal_mips_tx49_ref4955.cdl packages/hal/mips/rm7000/ocelot/current/ChangeLog packages/hal/mips/rm7000/ocelot/current/cdl/hal_mips_rm7000_ocelot.cdl packages/hal/mips/rm7000/var/current/ChangeLog packages/hal/mips/rm7000/var/current/cdl/hal_mips_rm7000.cdl packages/hal/mips/tx39/current/ChangeLog packages/hal/mips/tx39/current/cdl/hal_mips_tx39.cdl packages/hal/mips/tx49/current/ChangeLog packages/hal/mips/tx49/current/cdl/hal_mips_tx49.cdl packages/hal/mips/upd985xx/current/ChangeLog packages/hal/mips/upd985xx/current/cdl/hal_mips_upd985xx.cdl packages/hal/mips/vr4300/current/ChangeLog packages/hal/mips/vr4300/current/cdl/hal_mips_vr4300.cdl packages/hal/mn10300/am31/current/ChangeLog packages/hal/mn10300/am31/current/cdl/hal_mn10300_am31.cdl packages/hal/mn10300/am33/current/ChangeLog packages/hal/mn10300/am33/current/cdl/hal_mn10300_am33.cdl packages/hal/mn10300/arch/current/ChangeLog packages/hal/mn10300/arch/current/cdl/hal_mn10300.cdl packages/hal/openrisc/arch/current/ChangeLog packages/hal/openrisc/arch/current/cdl/hal_openrisc.cdl packages/hal/powerpc/arch/current/ChangeLog packages/hal/powerpc/arch/current/cdl/hal_powerpc.cdl packages/hal/powerpc/mpc5xx/current/ChangeLog packages/hal/powerpc/mpc5xx/current/cdl/hal_powerpc_mpc5xx.cdl packages/hal/powerpc/mpc8xx/current/ChangeLog packages/hal/powerpc/mpc8xx/current/cdl/hal_powerpc_mpc8xx.cdl packages/hal/sh/arch/current/ChangeLog packages/hal/sh/arch/current/cdl/hal_sh.cdl packages/hal/sh/sh2/current/ChangeLog packages/hal/sh/sh2/current/cdl/hal_sh_sh2.cdl packages/hal/sh/sh3/current/ChangeLog packages/hal/sh/sh3/current/cdl/hal_sh_sh3.cdl packages/hal/sh/sh4/current/ChangeLog packages/hal/sh/sh4/current/cdl/hal_sh_sh4.cdl packages/hal/sparc/arch/current/ChangeLog packages/hal/sparc/arch/current/cdl/hal_sparc.cdl packages/hal/sparclite/arch/current/ChangeLog packages/hal/sparclite/arch/current/cdl/hal_sparclite.cdl packages/hal/synth/arch/current/ChangeLog packages/hal/synth/arch/current/cdl/hal_synth.cdl packages/hal/synth/i386linux/current/ChangeLog packages/hal/synth/i386linux/current/cdl/hal_synth_i386.cdl packages/hal/v85x/arch/current/ChangeLog packages/hal/v85x/arch/current/cdl/hal_v85x.cdl packages/hal/v85x/v850/current/ChangeLog packages/hal/v85x/v850/current/cdl/hal_v85x_v850.cdl packages/io/serial/current/ChangeLog packages/io/serial/current/cdl/io_serial.cdl packages/services/loader/current/ChangeLog packages/services/loader/current/cdl/loader.cdl
diffstat 104 files changed, 337 insertions(+), 77 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/arm/aeb/current/ChangeLog
+++ b/packages/hal/arm/aeb/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_arm_aeb.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-07-18  Nick Garnett  <nickg@balti.calivar.com>
 
 	* cdl/hal_arm_aeb.cdl:
--- a/packages/hal/arm/aeb/current/cdl/hal_arm_aeb.cdl
+++ b/packages/hal/arm/aeb/current/cdl/hal_arm_aeb.cdl
@@ -226,7 +226,7 @@ cdl_package CYGPKG_HAL_ARM_AEB {
                 # Prepare dependency file
                 @echo $@ ": \\" > $(notdir $@).deps
                 @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
-                @tail +2 deps.tmp >> $(notdir $@).deps
+                @tail -n +2 deps.tmp >> $(notdir $@).deps
                 @echo >> $(notdir $@).deps
                 @rm deps.tmp
                 # Then build version with checksum from previously built image.
--- a/packages/hal/arm/arch/current/ChangeLog
+++ b/packages/hal/arm/arch/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_arm.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-11-05  Roland Caßebohm  <roland.cassebohm@visionsystems.de>
 
         * include/hal_io.h: If defined HAL_IO_MACROS_NO_ADDRESS_MUNGING
--- a/packages/hal/arm/arch/current/cdl/hal_arm.cdl
+++ b/packages/hal/arm/arch/current/cdl/hal_arm.cdl
@@ -70,7 +70,7 @@ cdl_package CYGPKG_HAL_ARM {
         $(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,arm.tmp -o hal_mk_defs.tmp -S $<
         fgrep .equ hal_mk_defs.tmp | sed s/#// > $@
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 arm.tmp >> $(notdir $@).deps
+        @tail -n +2 arm.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm arm.tmp hal_mk_defs.tmp
     }
@@ -79,7 +79,7 @@ cdl_package CYGPKG_HAL_ARM {
         <PREFIX>/lib/vectors.o : <PACKAGE>/src/vectors.S
         $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 vectors.tmp >> $(notdir $@).deps
+        @tail -n +2 vectors.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm vectors.tmp
     }
@@ -88,7 +88,7 @@ cdl_package CYGPKG_HAL_ARM {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/arm.ld
         $(CC) -E -P -Wp,-MD,target.tmp -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/arm/e7t/current/ChangeLog
+++ b/packages/hal/arm/e7t/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_arm_e7t.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-12-05  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* include/hal_diag.h: hal_delay_us is a C function.
--- a/packages/hal/arm/e7t/current/cdl/hal_arm_e7t.cdl
+++ b/packages/hal/arm/e7t/current/cdl/hal_arm_e7t.cdl
@@ -285,7 +285,7 @@ cdl_package CYGPKG_HAL_ARM_E7T {
                 # Prepare dependency file
                 @echo $@ ": \\" > $(notdir $@).deps
                 @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
-                @tail +2 deps.tmp >> $(notdir $@).deps
+                @tail -n +2 deps.tmp >> $(notdir $@).deps
                 @echo >> $(notdir $@).deps
                 @rm deps.tmp
                 # Then build version with checksum from previously built image.
--- a/packages/hal/arm/edb7xxx/current/ChangeLog
+++ b/packages/hal/arm/edb7xxx/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_arm_edb7xxx.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-12-05  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* include/hal_diag.h: hal_delay_us() is a C function.
--- a/packages/hal/arm/edb7xxx/current/cdl/hal_arm_edb7xxx.cdl
+++ b/packages/hal/arm/edb7xxx/current/cdl/hal_arm_edb7xxx.cdl
@@ -393,7 +393,7 @@ CL-PS7111 and EP7xxx based development b
                 $(CC) -c $(INCLUDE_PATH) -Wp,-MD,deps.tmp -I$(dir $<) $(CFLAGS) -o misc/prog_flash.o $<
                 @echo $@ ": \\" > $(notdir $@).deps
                 @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
-                @tail +2 deps.tmp >> $(notdir $@).deps
+                @tail -n +2 deps.tmp >> $(notdir $@).deps
                 @echo >> $(notdir $@).deps
                 @rm deps.tmp
                 $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ misc/prog_flash.o
@@ -417,7 +417,7 @@ CL-PS7111 and EP7xxx based development b
                 $(CC) -c $(INCLUDE_PATH) -Wp,-MD,deps.tmp -I$(dir $<) $(CFLAGS) -o misc/lcd_test.o $<
                 @echo $@ ": \\" > $(notdir $@).deps
                 @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
-                @tail +2 deps.tmp >> $(notdir $@).deps
+                @tail -n +2 deps.tmp >> $(notdir $@).deps
                 @echo >> $(notdir $@).deps
                 @rm deps.tmp
                 $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ misc/lcd_test.o
@@ -429,7 +429,7 @@ CL-PS7111 and EP7xxx based development b
                 $(CC) -c $(INCLUDE_PATH) -Wp,-MD,deps.tmp -I$(dir $<) $(CFLAGS) -o misc/panel_test.o $<
                 @echo $@ ": \\" > $(notdir $@).deps
                 @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
-                @tail +2 deps.tmp >> $(notdir $@).deps
+                @tail -n +2 deps.tmp >> $(notdir $@).deps
                 @echo >> $(notdir $@).deps
                 @rm deps.tmp
                 $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ misc/panel_test.o
@@ -441,7 +441,7 @@ CL-PS7111 and EP7xxx based development b
                 $(CC) -c $(INCLUDE_PATH) -Wp,-MD,deps.tmp -I$(dir $<) $(CFLAGS) -o misc/kbd_test.o $<
                 @echo $@ ": \\" > $(notdir $@).deps
                 @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
-                @tail +2 deps.tmp >> $(notdir $@).deps
+                @tail -n +2 deps.tmp >> $(notdir $@).deps
                 @echo >> $(notdir $@).deps
                 @rm deps.tmp
                 $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ misc/kbd_test.o
@@ -453,7 +453,7 @@ CL-PS7111 and EP7xxx based development b
                 $(CC) -c $(INCLUDE_PATH) -Wp,-MD,deps.tmp -I$(dir $<) $(CFLAGS) -o misc/i2s_audio_test.o $<
                 @echo $@ ": \\" > $(notdir $@).deps
                 @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
-                @tail +2 deps.tmp >> $(notdir $@).deps
+                @tail -n +2 deps.tmp >> $(notdir $@).deps
                 @echo >> $(notdir $@).deps
                 # warning: no proper deps here
                 $(CC) -c $(INCLUDE_PATH) -I$(dir $<) $(CFLAGS) -o misc/i2s_audio_fiq.o $(REPOSITORY)/$(PACKAGE)/misc/i2s_audio_fiq.S
--- a/packages/hal/arm/gps4020/current/ChangeLog
+++ b/packages/hal/arm/gps4020/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_arm_gps4020.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-12-05  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* include/hal_diag.h: hal_delay_us() is a C function.
--- a/packages/hal/arm/gps4020/current/cdl/hal_arm_gps4020.cdl
+++ b/packages/hal/arm/gps4020/current/cdl/hal_arm_gps4020.cdl
@@ -215,7 +215,7 @@ cdl_package CYGPKG_HAL_ARM_GPS4020 {
                 # Prepare dependency file
                 @echo $@ ": \\" > $(notdir $@).deps
                 @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
-                @tail +2 deps.tmp >> $(notdir $@).deps
+                @tail -n +2 deps.tmp >> $(notdir $@).deps
                 @echo >> $(notdir $@).deps
                 @rm deps.tmp
                 # Then build version with checksum from previously built image.
--- a/packages/hal/arm/integrator/current/ChangeLog
+++ b/packages/hal/arm/integrator/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_arm_integrator.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-12-05  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* include/hal_platform_ints.h: hal_delay_us() is a C function.
--- a/packages/hal/arm/integrator/current/cdl/hal_arm_integrator.cdl
+++ b/packages/hal/arm/integrator/current/cdl/hal_arm_integrator.cdl
@@ -293,7 +293,7 @@ cdl_package CYGPKG_HAL_ARM_INTEGRATOR {
                 $(CC) -c $(INCLUDE_PATH) -Wp,-MD,deps.tmp -I$(dir $<) $(CFLAGS) -o src/prog_flash.o $<
                 @echo $@ ": \\" > $(notdir $@).deps
                 @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
-                @tail +2 deps.tmp >> $(notdir $@).deps
+                @tail -n +2 deps.tmp >> $(notdir $@).deps
                 @echo >> $(notdir $@).deps
                 @rm deps.tmp
                 $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ src/prog_flash.o
@@ -319,7 +319,7 @@ cdl_package CYGPKG_HAL_ARM_INTEGRATOR {
                 $(CC) -DBE_IMAGE -c $(INCLUDE_PATH) -Wp,-MD,deps.tmp -I$(dir $<) $(CFLAGS) -o src/prog_flash_be.o $<
                 @echo $@ ": \\" > $(notdir $@).deps
                 @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
-                @tail +2 deps.tmp >> $(notdir $@).deps
+                @tail -n +2 deps.tmp >> $(notdir $@).deps
                 @echo >> $(notdir $@).deps
                 @rm deps.tmp
                 $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ src/prog_flash_be.o
--- a/packages/hal/arm/pid/current/ChangeLog
+++ b/packages/hal/arm/pid/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_arm_pid.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-12-05  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* include/hal_diag.h: hal_delay_us() is a C function.
--- a/packages/hal/arm/pid/current/cdl/hal_arm_pid.cdl
+++ b/packages/hal/arm/pid/current/cdl/hal_arm_pid.cdl
@@ -293,7 +293,7 @@ cdl_package CYGPKG_HAL_ARM_PID {
                 $(CC) -c $(INCLUDE_PATH) -Wp,-MD,deps.tmp -I$(dir $<) $(CFLAGS) -o src/prog_flash.o $<
                 @echo $@ ": \\" > $(notdir $@).deps
                 @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
-                @tail +2 deps.tmp >> $(notdir $@).deps
+                @tail -n +2 deps.tmp >> $(notdir $@).deps
                 @echo >> $(notdir $@).deps
                 @rm deps.tmp
                 $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ src/prog_flash.o
@@ -319,7 +319,7 @@ cdl_package CYGPKG_HAL_ARM_PID {
                 $(CC) -DBE_IMAGE -c $(INCLUDE_PATH) -Wp,-MD,deps.tmp -I$(dir $<) $(CFLAGS) -o src/prog_flash_be.o $<
                 @echo $@ ": \\" > $(notdir $@).deps
                 @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
-                @tail +2 deps.tmp >> $(notdir $@).deps
+                @tail -n +2 deps.tmp >> $(notdir $@).deps
                 @echo >> $(notdir $@).deps
                 @rm deps.tmp
                 $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ src/prog_flash_be.o
--- a/packages/hal/calmrisc16/arch/current/ChangeLog
+++ b/packages/hal/calmrisc16/arch/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_calm16.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-12-08  Gary Thomas  <gary@mlbassoc.com>
 
 	* src/hal_misc.c: Only declare __mem_fault_handler if GDB stubs
--- a/packages/hal/calmrisc16/arch/current/cdl/hal_calm16.cdl
+++ b/packages/hal/calmrisc16/arch/current/cdl/hal_calm16.cdl
@@ -72,7 +72,7 @@ cdl_package CYGPKG_HAL_CALM16 {
         <PREFIX>/lib/vectors.o : <PACKAGE>/src/vectors.S
         $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 vectors.tmp >> $(notdir $@).deps
+        @tail -n +2 vectors.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm vectors.tmp
     }
--- a/packages/hal/calmrisc16/core/current/ChangeLog
+++ b/packages/hal/calmrisc16/core/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_calm16_core.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-04-10  Nick Garnett  <nickg@balti.calivar.com>
 
 	* src/calm16_core.ld: 
--- a/packages/hal/calmrisc16/core/current/cdl/hal_calm16_core.cdl
+++ b/packages/hal/calmrisc16/core/current/cdl/hal_calm16_core.cdl
@@ -71,7 +71,7 @@ cdl_package CYGPKG_HAL_CALM16_CORE {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/calm16_core.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/calmrisc32/arch/current/ChangeLog
+++ b/packages/hal/calmrisc32/arch/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_calm32.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-12-08  Gary Thomas  <gary@mlbassoc.com>
 
 	* src/hal_misc.c: Only declare __mem_fault_handler if GDB stubs
--- a/packages/hal/calmrisc32/arch/current/cdl/hal_calm32.cdl
+++ b/packages/hal/calmrisc32/arch/current/cdl/hal_calm32.cdl
@@ -72,7 +72,7 @@ cdl_package CYGPKG_HAL_CALM32 {
         <PREFIX>/lib/vectors.o : <PACKAGE>/src/vectors.S
         $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 vectors.tmp >> $(notdir $@).deps
+        @tail -n +2 vectors.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm vectors.tmp
     }
--- a/packages/hal/calmrisc32/core/current/ChangeLog
+++ b/packages/hal/calmrisc32/core/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_calm32_core.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-04-10  Nick Garnett  <nickg@balti.calivar.com>
 
 	* src/calm32_core.ld: 
--- a/packages/hal/calmrisc32/core/current/cdl/hal_calm32_core.cdl
+++ b/packages/hal/calmrisc32/core/current/cdl/hal_calm32_core.cdl
@@ -71,7 +71,7 @@ cdl_package CYGPKG_HAL_CALM32_CORE {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/calm32_core.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/common/current/ChangeLog
+++ b/packages/hal/common/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2004-02-23  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* cdl/debugging.cdl (CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS): Included
--- a/packages/hal/common/current/cdl/hal.cdl
+++ b/packages/hal/common/current/cdl/hal.cdl
@@ -387,7 +387,7 @@ cdl_package CYGPKG_HAL {
                 $(CC) -c $(INCLUDE_PATH) -Wp,-MD,deps.tmp -I$(dir $<) $(CFLAGS) -o src/stubrom/gdb_module.o $<
                 @echo $@ ": \\" > $(notdir $@).deps
                 @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
-                @tail +2 deps.tmp >> $(notdir $@).deps
+                @tail -n +2 deps.tmp >> $(notdir $@).deps
                 @echo >> $(notdir $@).deps
                 @rm deps.tmp
                 $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ src/stubrom/gdb_module.o
--- a/packages/hal/frv/arch/current/ChangeLog
+++ b/packages/hal/frv/arch/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_frv.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-04-10  Nick Garnett  <nickg@balti.calivar.com>
 
 	* src/frv.ld:
--- a/packages/hal/frv/arch/current/cdl/hal_frv.cdl
+++ b/packages/hal/frv/arch/current/cdl/hal_frv.cdl
@@ -68,7 +68,7 @@ cdl_package CYGPKG_HAL_FRV {
         $(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,frv.tmp -o hal_mk_defs.tmp -S $<
         fgrep .equ hal_mk_defs.tmp | sed s/#// | sed s/\\.equ/#define/ > $@
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 frv.tmp >> $(notdir $@).deps
+        @tail -n +2 frv.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm frv.tmp hal_mk_defs.tmp
     }
@@ -77,7 +77,7 @@ cdl_package CYGPKG_HAL_FRV {
         <PREFIX>/lib/vectors.o : <PACKAGE>/src/vectors.S
         $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 vectors.tmp >> $(notdir $@).deps
+        @tail -n +2 vectors.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm vectors.tmp
     }
@@ -86,7 +86,7 @@ cdl_package CYGPKG_HAL_FRV {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/frv.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/frv/frv400/current/ChangeLog
+++ b/packages/hal/frv/frv400/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_frv_frv400.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-12-05  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* include/hal_diag.h: hal_delay_us() is a C function.
--- a/packages/hal/frv/frv400/current/cdl/hal_frv_frv400.cdl
+++ b/packages/hal/frv/frv400/current/cdl/hal_frv_frv400.cdl
@@ -258,7 +258,7 @@ cdl_package CYGPKG_HAL_FRV_FRV400 {
                 # Prepare dependency file
                 @echo $@ ": \\" > $(notdir $@).deps
                 @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
-                @tail +2 deps.tmp >> $(notdir $@).deps
+                @tail -n +2 deps.tmp >> $(notdir $@).deps
                 @echo >> $(notdir $@).deps
                 @rm deps.tmp
                 # Then build version with checksum from previously built image.
--- a/packages/hal/h8300/arch/current/ChangeLog
+++ b/packages/hal/h8300/arch/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_h8300.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2004-03-18  Yoshinori Sato <ysato@users.sourceforge.jp>
 
 	* src/context.S
--- a/packages/hal/h8300/arch/current/cdl/hal_h8300.cdl
+++ b/packages/hal/h8300/arch/current/cdl/hal_h8300.cdl
@@ -82,7 +82,7 @@ cdl_package CYGPKG_HAL_H8300 {
         <PREFIX>/lib/vectors.o : <PACKAGE>/src/vectors.S
         $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 vectors.tmp >> $(notdir $@).deps
+        @tail -n +2 vectors.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm vectors.tmp
     }
--- a/packages/hal/h8300/h8300h/current/ChangeLog
+++ b/packages/hal/h8300/h8300h/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_h8300_h8300h.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-03-17  Yoshinori Sato  <ysato@users.sourceforge.jp>
 
 	* src/h8300h_stub.c
--- a/packages/hal/h8300/h8300h/current/cdl/hal_h8300_h8300h.cdl
+++ b/packages/hal/h8300/h8300h/current/cdl/hal_h8300_h8300h.cdl
@@ -72,7 +72,7 @@ cdl_package CYGPKG_HAL_H8300_H8300H {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/h8300_h8300h.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/h8300/h8s/current/ChangeLog
+++ b/packages/hal/h8300/h8s/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_h8300_h8s.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2004-03-18  Yoshinori Sato  <ysato@users.sourceforge.jp>
 
 	* include/variant.inc
--- a/packages/hal/h8300/h8s/current/cdl/hal_h8300_h8s.cdl
+++ b/packages/hal/h8300/h8s/current/cdl/hal_h8300_h8s.cdl
@@ -72,7 +72,7 @@ cdl_package CYGPKG_HAL_H8300_H8S {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/h8300_h8s.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/i386/arch/current/ChangeLog
+++ b/packages/hal/i386/arch/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_i386.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-12-08  Gary Thomas  <gary@mlbassoc.com>
 
 	* src/hal_misc.c: Only declare __mem_fault_handler if GDB stubs
--- a/packages/hal/i386/arch/current/cdl/hal_i386.cdl
+++ b/packages/hal/i386/arch/current/cdl/hal_i386.cdl
@@ -67,7 +67,7 @@ cdl_package CYGPKG_HAL_I386 {
         <PREFIX>/lib/vectors.o : <PACKAGE>/src/vectors.S
         $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 vectors.tmp >> $(notdir $@).deps
+        @tail -n +2 vectors.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm vectors.tmp
     }
@@ -76,7 +76,7 @@ cdl_package CYGPKG_HAL_I386 {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/i386.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/i386/pc/current/ChangeLog
+++ b/packages/hal/i386/pc/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_i386_pc.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-07-23  Nick Garnett  <nickg@balti.calivar.com>
 
 	* include/plf_intr.h: Added extern definition for hal_pc_reset().
--- a/packages/hal/i386/pc/current/cdl/hal_i386_pc.cdl
+++ b/packages/hal/i386/pc/current/cdl/hal_i386_pc.cdl
@@ -120,7 +120,7 @@ cdl_package CYGPKG_HAL_I386_PC {
 	    @sh -c "mkdir -p $(dir $@)"
 	    $(CC) -Wp,-MD,romboot.tmp $(INCLUDE_PATH) -nostdlib -Wl,-static -T$(PREFIX)/lib/romboot.ld -o $@ $<
 	    @echo $@ ": \\" > $(notdir $@).deps
-	    @tail +2 romboot.tmp >> $(notdir $@).deps
+	    @tail -n +2 romboot.tmp >> $(notdir $@).deps
 	    @echo >> $(notdir $@).deps
 	    @rm romboot.tmp
 	}
--- a/packages/hal/m68k/arch/current/ChangeLog
+++ b/packages/hal/m68k/arch/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_m68k.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 //===========================================================================
 //####ECOSGPLCOPYRIGHTBEGIN####
 // -------------------------------------------
--- a/packages/hal/m68k/arch/current/cdl/hal_m68k.cdl
+++ b/packages/hal/m68k/arch/current/cdl/hal_m68k.cdl
@@ -62,7 +62,7 @@ cdl_package CYGPKG_HAL_M68K {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/m68k.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/m68k/mcf52xx/var/current/ChangeLog
+++ b/packages/hal/m68k/mcf52xx/var/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_m68k_mcf52xx.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 //===========================================================================
 //####ECOSGPLCOPYRIGHTBEGIN####
 // -------------------------------------------
--- a/packages/hal/m68k/mcf52xx/var/current/cdl/hal_m68k_mcf52xx.cdl
+++ b/packages/hal/m68k/mcf52xx/var/current/cdl/hal_m68k_mcf52xx.cdl
@@ -61,7 +61,7 @@ cdl_package CYGPKG_HAL_M68K_MCF52xx {
         <PREFIX>/lib/vectors.o : <PACKAGE>/src/vectors.S
         $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 vectors.tmp >> $(notdir $@).deps
+        @tail -n +2 vectors.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm vectors.tmp
     }
--- a/packages/hal/mips/arch/current/ChangeLog
+++ b/packages/hal/mips/arch/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_mips.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-08-06  Andy Dyer <adyer@righthandtech.com>
 
 	* include/arch.inc: Changed mask for cause register interrupt bits
--- a/packages/hal/mips/arch/current/cdl/hal_mips.cdl
+++ b/packages/hal/mips/arch/current/cdl/hal_mips.cdl
@@ -73,7 +73,7 @@ cdl_package CYGPKG_HAL_MIPS {
         <PREFIX>/lib/vectors.o : <PACKAGE>/src/vectors.S
         $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 vectors.tmp >> $(notdir $@).deps
+        @tail -n +2 vectors.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm vectors.tmp
     }
--- a/packages/hal/mips/idt32334/current/ChangeLog
+++ b/packages/hal/mips/idt32334/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_mips_idt32334.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-04-29  Tim Michals  <t.michals@attbi.com>
 
 	* include/variant.inc (hal_intc_translation_table): Updated.
--- a/packages/hal/mips/idt32334/current/cdl/hal_mips_idt32334.cdl
+++ b/packages/hal/mips/idt32334/current/cdl/hal_mips_idt32334.cdl
@@ -93,7 +93,7 @@ cdl_package CYGPKG_HAL_MIPS_IDT32334 {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/mips_idt32334.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/mips/malta/current/ChangeLog
+++ b/packages/hal/mips/malta/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_mips_malta.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2004-01-14  Nick Garnett  <nickg@calivar.com>
 
 	* src/plf_misc.c (hal_platform_init): Changed capitalization of
--- a/packages/hal/mips/malta/current/cdl/hal_mips_malta.cdl
+++ b/packages/hal/mips/malta/current/cdl/hal_mips_malta.cdl
@@ -126,7 +126,7 @@ cdl_package CYGPKG_HAL_MIPS_MALTA {
         $(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,plf_defs.tmp -o plf_mk_defs.tmp -S $<
         fgrep .equ plf_mk_defs.tmp | sed s/#// > $@
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 plf_defs.tmp >> $(notdir $@).deps
+        @tail -n +2 plf_defs.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm plf_defs.tmp plf_mk_defs.tmp
     }
--- a/packages/hal/mips/mips32/current/ChangeLog
+++ b/packages/hal/mips/mips32/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_mips_mips32.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-04-10  Nick Garnett  <nickg@balti.calivar.com>
 
 	* src/mips_mips32.ld:
--- a/packages/hal/mips/mips32/current/cdl/hal_mips_mips32.cdl
+++ b/packages/hal/mips/mips32/current/cdl/hal_mips_mips32.cdl
@@ -113,7 +113,7 @@ cdl_package CYGPKG_HAL_MIPS_MIPS32 {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/mips_mips32.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/mips/mips64/current/ChangeLog
+++ b/packages/hal/mips/mips64/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_mips_mips64.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-04-10  Nick Garnett  <nickg@balti.calivar.com>
 
 	* src/mips_mips64.ld: 
--- a/packages/hal/mips/mips64/current/cdl/hal_mips_mips64.cdl
+++ b/packages/hal/mips/mips64/current/cdl/hal_mips_mips64.cdl
@@ -106,7 +106,7 @@ cdl_package CYGPKG_HAL_MIPS_MIPS64 {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/mips_mips64.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/mips/ref4955/current/ChangeLog
+++ b/packages/hal/mips/ref4955/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_mips_tx49_ref4955.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-07-18  Nick Garnett  <nickg@balti.calivar.com>
 
 	* cdl/hal_mips_tx49_ref4955.cdl:
--- a/packages/hal/mips/ref4955/current/cdl/hal_mips_tx49_ref4955.cdl
+++ b/packages/hal/mips/ref4955/current/cdl/hal_mips_tx49_ref4955.cdl
@@ -147,7 +147,7 @@ cdl_package CYGPKG_HAL_MIPS_TX49_REF4955
         $(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,plf_defs.tmp -o plf_mk_defs.tmp -S $<
         fgrep .equ plf_mk_defs.tmp | sed s/#// > $@
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 plf_defs.tmp >> $(notdir $@).deps
+        @tail -n +2 plf_defs.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm plf_defs.tmp plf_mk_defs.tmp
     }
--- a/packages/hal/mips/rm7000/ocelot/current/ChangeLog
+++ b/packages/hal/mips/rm7000/ocelot/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_mips_rm7000_ocelot.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-07-18  Nick Garnett  <nickg@balti.calivar.com>
 
 	* cdl/hal_mips_rm7000_ocelot.cdl:
--- a/packages/hal/mips/rm7000/ocelot/current/cdl/hal_mips_rm7000_ocelot.cdl
+++ b/packages/hal/mips/rm7000/ocelot/current/cdl/hal_mips_rm7000_ocelot.cdl
@@ -198,7 +198,7 @@ cdl_package CYGPKG_HAL_MIPS_RM7000_OCELO
         $(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,plf_defs.tmp -o plf_mk_defs.tmp -S $<
         fgrep .equ plf_mk_defs.tmp | sed s/#// > $@
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 plf_defs.tmp >> $(notdir $@).deps
+        @tail -n +2 plf_defs.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm plf_defs.tmp plf_mk_defs.tmp
     }
--- a/packages/hal/mips/rm7000/var/current/ChangeLog
+++ b/packages/hal/mips/rm7000/var/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_mips_rm7000.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-04-10  Nick Garnett  <nickg@balti.calivar.com>
 
 	* src/mips_rm7000.ld: 
--- a/packages/hal/mips/rm7000/var/current/cdl/hal_mips_rm7000.cdl
+++ b/packages/hal/mips/rm7000/var/current/cdl/hal_mips_rm7000.cdl
@@ -140,7 +140,7 @@ cdl_package CYGPKG_HAL_MIPS_RM7000 {
         $(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,var_defs.tmp -o var_mk_defs.tmp -S $<
         fgrep .equ var_mk_defs.tmp | sed s/#// > $@
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 var_defs.tmp >> $(notdir $@).deps
+        @tail -n +2 var_defs.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm var_defs.tmp var_mk_defs.tmp
     }
@@ -149,7 +149,7 @@ cdl_package CYGPKG_HAL_MIPS_RM7000 {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/mips_rm7000.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/mips/tx39/current/ChangeLog
+++ b/packages/hal/mips/tx39/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_mips_tx39.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-04-10  Nick Garnett  <nickg@balti.calivar.com>
 
 	* src/mips_tx39.ld: 
--- a/packages/hal/mips/tx39/current/cdl/hal_mips_tx39.cdl
+++ b/packages/hal/mips/tx39/current/cdl/hal_mips_tx39.cdl
@@ -114,7 +114,7 @@ cdl_package CYGPKG_HAL_MIPS_TX39 {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/mips_tx39.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/mips/tx49/current/ChangeLog
+++ b/packages/hal/mips/tx49/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_mips_tx49.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-08-06  Andy Dyer <adyer@righthandtech.com>
 
 	* src/mips_tx49.ld:
--- a/packages/hal/mips/tx49/current/cdl/hal_mips_tx49.cdl
+++ b/packages/hal/mips/tx49/current/cdl/hal_mips_tx49.cdl
@@ -137,7 +137,7 @@ cdl_package CYGPKG_HAL_MIPS_TX49 {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/mips_tx49.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/mips/upd985xx/current/ChangeLog
+++ b/packages/hal/mips/upd985xx/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_mips_upd985xx.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-04-10  Nick Garnett  <nickg@balti.calivar.com>
 
 	* src/hal_mips_upd985xx.ld: 
--- a/packages/hal/mips/upd985xx/current/cdl/hal_mips_upd985xx.cdl
+++ b/packages/hal/mips/upd985xx/current/cdl/hal_mips_upd985xx.cdl
@@ -213,7 +213,7 @@ cdl_package CYGPKG_HAL_MIPS_UPD985XX {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/hal_mips_upd985xx.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/mips/vr4300/current/ChangeLog
+++ b/packages/hal/mips/vr4300/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_mips_vr4300.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-04-10  Nick Garnett  <nickg@balti.calivar.com>
 
 	* src/mips_vr4300.ld: 
--- a/packages/hal/mips/vr4300/current/cdl/hal_mips_vr4300.cdl
+++ b/packages/hal/mips/vr4300/current/cdl/hal_mips_vr4300.cdl
@@ -85,7 +85,7 @@ cdl_package CYGPKG_HAL_MIPS_VR4300 {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/mips_vr4300.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/mn10300/am31/current/ChangeLog
+++ b/packages/hal/mn10300/am31/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_mn10300_am31.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-04-10  Nick Garnett  <nickg@balti.calivar.com>
 
 	* src/mn10300_am31.ld:
--- a/packages/hal/mn10300/am31/current/cdl/hal_mn10300_am31.cdl
+++ b/packages/hal/mn10300/am31/current/cdl/hal_mn10300_am31.cdl
@@ -72,7 +72,7 @@ cdl_package CYGPKG_HAL_MN10300_AM31 {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/mn10300_am31.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/mn10300/am33/current/ChangeLog
+++ b/packages/hal/mn10300/am33/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_mn10300_am33.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-12-05  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* include/var_intr.h:  hal_delay_us() is a C function.
--- a/packages/hal/mn10300/am33/current/cdl/hal_mn10300_am33.cdl
+++ b/packages/hal/mn10300/am33/current/cdl/hal_mn10300_am33.cdl
@@ -233,7 +233,7 @@ cdl_package CYGPKG_HAL_MN10300_AM33 {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/mn10300_am33.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/mn10300/arch/current/ChangeLog
+++ b/packages/hal/mn10300/arch/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_mn10300.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-12-08  Gary Thomas  <gary@mlbassoc.com>
 
 	* src/hal_misc.c: Only declare __mem_fault_handler if GDB stubs
--- a/packages/hal/mn10300/arch/current/cdl/hal_mn10300.cdl
+++ b/packages/hal/mn10300/arch/current/cdl/hal_mn10300.cdl
@@ -86,7 +86,7 @@ cdl_package CYGPKG_HAL_MN10300 {
         <PREFIX>/lib/vectors.o : <PACKAGE>/src/vectors.S
         $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 vectors.tmp >> $(notdir $@).deps
+        @tail -n +2 vectors.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm vectors.tmp
     }
--- a/packages/hal/openrisc/arch/current/ChangeLog
+++ b/packages/hal/openrisc/arch/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_openrisc.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-12-08  Gary Thomas  <gary@mlbassoc.com>
 
 	* src/hal_misc.c: Only declare __mem_fault_handler if GDB stubs
--- a/packages/hal/openrisc/arch/current/cdl/hal_openrisc.cdl
+++ b/packages/hal/openrisc/arch/current/cdl/hal_openrisc.cdl
@@ -72,7 +72,7 @@ cdl_package CYGPKG_HAL_OPENRISC {
         <PREFIX>/lib/vectors.o : <PACKAGE>/src/vectors.S
         $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 vectors.tmp >> $(notdir $@).deps
+        @tail -n +2 vectors.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm vectors.tmp
     }
@@ -92,7 +92,7 @@ cdl_package CYGPKG_HAL_OPENRISC {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/openrisc.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/powerpc/arch/current/ChangeLog
+++ b/packages/hal/powerpc/arch/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_powerpc.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-12-11  Gary Thomas  <gary@mlbassoc.com>
 
 	* include/hal_intr.h: Add macros to manipulate machine check enable
--- a/packages/hal/powerpc/arch/current/cdl/hal_powerpc.cdl
+++ b/packages/hal/powerpc/arch/current/cdl/hal_powerpc.cdl
@@ -77,7 +77,7 @@ cdl_package CYGPKG_HAL_POWERPC {
         $(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,ppc_offsets.tmp -o hal_mk_defs.tmp -S $<
         fgrep .equ hal_mk_defs.tmp | sed s/#// > $@
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 ppc_offsets.tmp >> $(notdir $@).deps
+        @tail -n +2 ppc_offsets.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm ppc_offsets.tmp hal_mk_defs.tmp
     }
@@ -86,7 +86,7 @@ cdl_package CYGPKG_HAL_POWERPC {
         <PREFIX>/lib/vectors.o : <PACKAGE>/src/vectors.S
         $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 vectors.tmp >> $(notdir $@).deps
+        @tail -n +2 vectors.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm vectors.tmp
     }
@@ -95,7 +95,7 @@ cdl_package CYGPKG_HAL_POWERPC {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/powerpc.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/powerpc/mpc5xx/current/ChangeLog
+++ b/packages/hal/powerpc/mpc5xx/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_powerpc_mpc5xx.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2004-04-21  Gary Thomas  <gary@mlbassoc.com>
 
 	* src/var_intr.c: 
--- a/packages/hal/powerpc/mpc5xx/current/cdl/hal_powerpc_mpc5xx.cdl
+++ b/packages/hal/powerpc/mpc5xx/current/cdl/hal_powerpc_mpc5xx.cdl
@@ -355,7 +355,7 @@ cdl_package CYGPKG_HAL_POWERPC_MPC5xx {
             $(CC) -c $(INCLUDE_PATH) -Wp,-MD,deps.tmp -I$(dir $<) $(CFLAGS) -o src/mpc5xxrev.o $<
             @echo $@ ": \\" > $(notdir $@).deps
             @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
-            @tail +2 deps.tmp >> $(notdir $@).deps
+            @tail -n +2 deps.tmp >> $(notdir $@).deps
             @echo >> $(notdir $@).deps
             @rm deps.tmp
             $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ src/mpc5xxrev.o
--- a/packages/hal/powerpc/mpc8xx/current/ChangeLog
+++ b/packages/hal/powerpc/mpc8xx/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_powerpc_mpc8xx.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-12-08  Gary Thomas  <gary@mlbassoc.com>
 
 	* cdl/hal_powerpc_mpc8xx.cdl: Define HAL_PLATFORM_CPU, based on
--- a/packages/hal/powerpc/mpc8xx/current/cdl/hal_powerpc_mpc8xx.cdl
+++ b/packages/hal/powerpc/mpc8xx/current/cdl/hal_powerpc_mpc8xx.cdl
@@ -200,7 +200,7 @@ cdl_package CYGPKG_HAL_POWERPC_MPC8xx {
             $(CC) -c $(INCLUDE_PATH) -Wp,-MD,deps.tmp -I$(dir $<) $(CFLAGS) -o src/mpc8xxrev.o $<
             @echo $@ ": \\" > $(notdir $@).deps
             @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
-            @tail +2 deps.tmp >> $(notdir $@).deps
+            @tail -n +2 deps.tmp >> $(notdir $@).deps
             @echo >> $(notdir $@).deps
             @rm deps.tmp
             $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ src/mpc8xxrev.o
--- a/packages/hal/sh/arch/current/ChangeLog
+++ b/packages/hal/sh/arch/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_sh.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2004-02-05  Kelvin Lawson  <klawson@ad-holdings.co.uk>
 
 	* include/hal_var_bank.inc: Fix build error on non-FPU systems due to
--- a/packages/hal/sh/arch/current/cdl/hal_sh.cdl
+++ b/packages/hal/sh/arch/current/cdl/hal_sh.cdl
@@ -72,7 +72,7 @@ cdl_package CYGPKG_HAL_SH {
         $(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,sh_offsets.tmp -o hal_mk_defs.tmp -S $<
         fgrep .equ hal_mk_defs.tmp | sed s/#// > $@
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 sh_offsets.tmp >> $(notdir $@).deps
+        @tail -n +2 sh_offsets.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm sh_offsets.tmp hal_mk_defs.tmp
     }
@@ -81,7 +81,7 @@ cdl_package CYGPKG_HAL_SH {
         <PREFIX>/lib/vectors.o : <PACKAGE>/src/vectors.S
         $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 vectors.tmp >> $(notdir $@).deps
+        @tail -n +2 vectors.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm vectors.tmp
     }
@@ -90,7 +90,7 @@ cdl_package CYGPKG_HAL_SH {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/sh.ld
         $(CC) -E -P -Wp,-MD,target.tmp -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/sh/sh2/current/ChangeLog
+++ b/packages/hal/sh/sh2/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_sh_sh2.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2002-08-06  Gary Thomas  <gary@chez-thomas.org>
 2002-08-06  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
 
--- a/packages/hal/sh/sh2/current/cdl/hal_sh_sh2.cdl
+++ b/packages/hal/sh/sh2/current/cdl/hal_sh_sh2.cdl
@@ -78,7 +78,7 @@ cdl_package CYGPKG_HAL_SH_SH2 {
         $(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,sh2_offsets.tmp -o var_mk_defs.tmp -S $<
         fgrep .equ var_mk_defs.tmp | sed s/#// > $@
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 sh2_offsets.tmp >> $(notdir $@).deps
+        @tail -n +2 sh2_offsets.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm sh2_offsets.tmp var_mk_defs.tmp
     }
--- a/packages/hal/sh/sh3/current/ChangeLog
+++ b/packages/hal/sh/sh3/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_sh_sh3.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-04-27  Rod Campbell  <rodc@sigmaelectronics.com>
 
 	* include/mod_regs_cpg.h (CYGARC_REG_FRQCR_INIT_DIVIDER2): Fix
--- a/packages/hal/sh/sh3/current/cdl/hal_sh_sh3.cdl
+++ b/packages/hal/sh/sh3/current/cdl/hal_sh_sh3.cdl
@@ -76,7 +76,7 @@ cdl_package CYGPKG_HAL_SH_SH3 {
         $(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,sh3_offsets.tmp -o var_mk_defs.tmp -S $<
         fgrep .equ var_mk_defs.tmp | sed s/#// > $@
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 sh3_offsets.tmp >> $(notdir $@).deps
+        @tail -n +2 sh3_offsets.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm sh3_offsets.tmp var_mk_defs.tmp
     }
--- a/packages/hal/sh/sh4/current/ChangeLog
+++ b/packages/hal/sh/sh4/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_sh_sh4.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-09-21  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* src/var_misc.c (hal_variant_init): Set FPSCR on startup.
--- a/packages/hal/sh/sh4/current/cdl/hal_sh_sh4.cdl
+++ b/packages/hal/sh/sh4/current/cdl/hal_sh_sh4.cdl
@@ -80,7 +80,7 @@ cdl_package CYGPKG_HAL_SH_SH4 {
         $(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,sh4_offsets.tmp -o var_mk_defs.tmp -S $<
         fgrep .equ var_mk_defs.tmp | sed s/#// > $@
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 sh4_offsets.tmp >> $(notdir $@).deps
+        @tail -n +2 sh4_offsets.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm sh4_offsets.tmp var_mk_defs.tmp
     }
--- a/packages/hal/sparc/arch/current/ChangeLog
+++ b/packages/hal/sparc/arch/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_sparc.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-04-10  Nick Garnett  <nickg@balti.calivar.com>
 
 	* src/sparc.ld: 
--- a/packages/hal/sparc/arch/current/cdl/hal_sparc.cdl
+++ b/packages/hal/sparc/arch/current/cdl/hal_sparc.cdl
@@ -67,7 +67,7 @@ cdl_package CYGPKG_HAL_SPARC {
         <PREFIX>/lib/vectors.o : <PACKAGE>/src/vectors.S
         $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 vectors.tmp >> $(notdir $@).deps
+        @tail -n +2 vectors.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm vectors.tmp
     }
@@ -76,7 +76,7 @@ cdl_package CYGPKG_HAL_SPARC {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/sparc.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/sparclite/arch/current/ChangeLog
+++ b/packages/hal/sparclite/arch/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_sparclite.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-04-10  Nick Garnett  <nickg@balti.calivar.com>
 
 	* src/sparclite.ld: 
--- a/packages/hal/sparclite/arch/current/cdl/hal_sparclite.cdl
+++ b/packages/hal/sparclite/arch/current/cdl/hal_sparclite.cdl
@@ -67,7 +67,7 @@ cdl_package CYGPKG_HAL_SPARCLITE {
         <PREFIX>/lib/vectors.o : <PACKAGE>/src/vectors.S
         $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 vectors.tmp >> $(notdir $@).deps
+        @tail -n +2 vectors.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm vectors.tmp
     }
@@ -76,7 +76,7 @@ cdl_package CYGPKG_HAL_SPARCLITE {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/sparclite.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/synth/arch/current/ChangeLog
+++ b/packages/hal/synth/arch/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_synth.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-07-18  Nick Garnett  <nickg@balti.calivar.com>
 
 	* cdl/hal_synth.cdl:
--- a/packages/hal/synth/arch/current/cdl/hal_synth.cdl
+++ b/packages/hal/synth/arch/current/cdl/hal_synth.cdl
@@ -67,7 +67,7 @@ cdl_package CYGPKG_HAL_SYNTH {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/synth.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/hal/synth/i386linux/current/ChangeLog
+++ b/packages/hal/synth/i386linux/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_synth_i386.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2002-09-15  Bart Veer  <bartv@ecoscentric.com>
 
 	* src/syscall-i386-linux-1.0.S:
--- a/packages/hal/synth/i386linux/current/cdl/hal_synth_i386.cdl
+++ b/packages/hal/synth/i386linux/current/cdl/hal_synth_i386.cdl
@@ -70,7 +70,7 @@ cdl_package CYGPKG_HAL_SYNTH_I386 {
         <PREFIX>/lib/vectors.o : <PACKAGE>/src/vectors.S
         $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 vectors.tmp >> $(notdir $@).deps
+        @tail -n +2 vectors.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm vectors.tmp
     }
--- a/packages/hal/v85x/arch/current/ChangeLog
+++ b/packages/hal/v85x/arch/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_v85x.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-12-08  Gary Thomas  <gary@mlbassoc.com>
 
 	* src/hal_misc.c: Remove unused __mem_fault_handler declaration.
--- a/packages/hal/v85x/arch/current/cdl/hal_v85x.cdl
+++ b/packages/hal/v85x/arch/current/cdl/hal_v85x.cdl
@@ -73,7 +73,7 @@ cdl_package CYGPKG_HAL_V85X {
         $(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,nec_offsets.tmp -o hal_mk_defs.tmp -S $<
         fgrep .equ hal_mk_defs.tmp | sed s/#// > $@
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 nec_offsets.tmp >> $(notdir $@).deps
+        @tail -n +2 nec_offsets.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm nec_offsets.tmp hal_mk_defs.tmp
     }
@@ -82,7 +82,7 @@ cdl_package CYGPKG_HAL_V85X {
         <PREFIX>/lib/vectors.o : <PACKAGE>/src/vectors.S
         $(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 vectors.tmp >> $(notdir $@).deps
+        @tail -n +2 vectors.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm vectors.tmp
     }
--- a/packages/hal/v85x/v850/current/ChangeLog
+++ b/packages/hal/v85x/v850/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/hal_v85x_v850.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2003-04-10  Nick Garnett  <nickg@balti.calivar.com>
 
 	* src/v85x_v850.ld:
--- a/packages/hal/v85x/v850/current/cdl/hal_v85x_v850.cdl
+++ b/packages/hal/v85x/v850/current/cdl/hal_v85x_v850.cdl
@@ -106,7 +106,7 @@ cdl_package CYGPKG_HAL_V85X_V850 {
         <PREFIX>/lib/target.ld: <PACKAGE>/src/v85x_v850.ld
         $(CC) -E -P -Wp,-MD,target.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 target.tmp >> $(notdir $@).deps
+        @tail -n +2 target.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm target.tmp
     }
--- a/packages/io/serial/current/ChangeLog
+++ b/packages/io/serial/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/io_serial.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2004-01-12  Dan Jakubiec <djakubiec@yahoo.com>
 
 	* src/common/serial.c: serial_write() was returning an incorrect
--- a/packages/io/serial/current/cdl/io_serial.cdl
+++ b/packages/io/serial/current/cdl/io_serial.cdl
@@ -253,7 +253,7 @@ cdl_package CYGPKG_IO_SERIAL {
             $(CC) -c $(INCLUDE_PATH) -Wp,-MD,deps.tmp -I$(dir $<) $(CFLAGS) -o tests/serial_echo.o $<
             @echo $@ ": \\" > $(notdir $@).deps
             @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
-            @tail +2 deps.tmp >> $(notdir $@).deps
+            @tail -n +2 deps.tmp >> $(notdir $@).deps
             @echo >> $(notdir $@).deps
             @rm deps.tmp
             $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ tests/serial_echo.o
--- a/packages/services/loader/current/ChangeLog
+++ b/packages/services/loader/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22  Jani Monoses <jani@iv.ro>
+
+	 * cdl/loader.cdl :
+	 Invoke tail with stricter syntax that works in latest coreutils. 
+
 2001-01-05  Nick Garnett  <nickg@cygnus.co.uk>
 
 	* include/ppc_elf.h:
--- a/packages/services/loader/current/cdl/loader.cdl
+++ b/packages/services/loader/current/cdl/loader.cdl
@@ -129,7 +129,7 @@ cdl_package CYGPKG_LOADER {
 	    <PREFIX>/lib/dynamic.ld: <PACKAGE>/src/dynamic.ld
 	    $(CC) -E -P -Wp,-MD,dynamic.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
 	    @echo $@ ": \\" > $(notdir $@).deps
-	    @tail +2 dynamic.tmp >> $(notdir $@).deps
+	    @tail -n +2 dynamic.tmp >> $(notdir $@).deps
 	    @echo >> $(notdir $@).deps
 	    @rm dynamic.tmp
 
@@ -145,7 +145,7 @@ cdl_package CYGPKG_LOADER {
         <PREFIX>/lib/crtbeginS.o : <PACKAGE>/src/crtbeginS.c
         $(CC) -Wp,-MD,crtbeginS.tmp $(INCLUDE_PATH) -g0 -Wall -finhibit-size-directive -fno-inline-functions -fno-exceptions -c -o $@ $<	    
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 crtbeginS.tmp >> $(notdir $@).deps
+        @tail -n +2 crtbeginS.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm crtbeginS.tmp
 	}
@@ -160,7 +160,7 @@ cdl_package CYGPKG_LOADER {
         <PREFIX>/lib/crtendS.o : <PACKAGE>/src/crtendS.c
         $(CC) -Wp,-MD,crtendS.tmp $(INCLUDE_PATH) -g0 -Wall -finhibit-size-directive -fno-inline-functions -fno-exceptions -c -o $@ $<	    
         @echo $@ ": \\" > $(notdir $@).deps
-        @tail +2 crtendS.tmp >> $(notdir $@).deps
+        @tail -n +2 crtendS.tmp >> $(notdir $@).deps
         @echo >> $(notdir $@).deps
         @rm crtendS.tmp
 	}
@@ -180,7 +180,7 @@ cdl_package CYGPKG_LOADER {
 	            $(CC) $(CFLAGS) -Wp,-MD,dlforce.tmp $(INCLUDE_PATH) -shared -c -o src/dlforce.o $<
 	            $(CC) -g -nostdlib -L$(PREFIX)/lib -shared -Tdynamic.ld -o $@ $(PREFIX)/lib/crtbeginS.o src/dlforce.o $(PREFIX)/lib/crtendS.o
 	            @echo $@ ": \\" > $(notdir $@).deps
-                    @tail +2 dlforce.tmp >> $(notdir $@).deps
+                    @tail -n +2 dlforce.tmp >> $(notdir $@).deps
                     @echo >> $(notdir $@).deps
                     @rm dlforce.tmp
 	}
@@ -202,7 +202,7 @@ cdl_package CYGPKG_LOADER {
 	            $(CC) $(CFLAGS) -Wp,-MD,foo.tmp $(INCLUDE_PATH) -shared -c -o tests/foo.o $<
 	            $(CC) $(LDFLAGS) -L$(PREFIX)/lib -shared -Tdynamic.ld -o $@ $(PREFIX)/lib/crtbeginS.o tests/foo.o $(PREFIX)/lib/crtendS.o
 	            @echo $@ ": \\" > $(notdir $@).deps
-	            @tail +2 foo.tmp >> $(notdir $@).deps
+	            @tail -n +2 foo.tmp >> $(notdir $@).deps
 	            @echo >> $(notdir $@).deps
 	            @rm foo.tmp
 	            cc -o entable $(REPOSITORY)/$(PACKAGE)/tests/entable.c
@@ -223,7 +223,7 @@ cdl_package CYGPKG_LOADER {
 #	            $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -ldlforce -o $@ $(PREFIX)/lib/crtbeginS.o tests/loadfoo.o $(PREFIX)/lib/crtendS.o
 	            $(CC) $(LDFLAGS) -Wl,-E -L$(PREFIX)/lib -Ttarget.ld -ldlforce -o $@ tests/loadfoo.o
 	            @echo $@ ": \\" > $(notdir $@).deps
-	            @tail +2 loadfoo.tmp >> $(notdir $@).deps
+	            @tail -n +2 loadfoo.tmp >> $(notdir $@).deps
 	            @echo >> $(notdir $@).deps
 	            @rm loadfoo.tmp