Skip to content

Commit

Permalink
More portable use of tail.
Browse files Browse the repository at this point in the history
Apparently, tail +2 is not portable, but tail -n +2 should work.
  • Loading branch information
steveicarus committed Dec 4, 2009
1 parent 8b7ffa1 commit b85b2d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.in
Expand Up @@ -223,7 +223,7 @@ lexor_keyword.cc: $(srcdir)/lexor_keyword.gperf

iverilog-vpi.man: $(srcdir)/iverilog-vpi.man.in version.exe
./version.exe `head -1 $(srcdir)/iverilog-vpi.man.in`'\n' > $@
tail +2 $(srcdir)/iverilog-vpi.man.in >> $@
tail -n +2 $(srcdir)/iverilog-vpi.man.in >> $@

iverilog-vpi.ps: iverilog-vpi.man
$(MAN) -t iverilog-vpi.man > iverilog-vpi.ps
Expand Down
2 changes: 1 addition & 1 deletion driver/Makefile.in
Expand Up @@ -86,7 +86,7 @@ cflexor.o: cflexor.c cfparse.h

iverilog.man: $(srcdir)/iverilog.man.in ../version.exe
../version.exe `head -1 $(srcdir)/iverilog.man.in`'\n' > $@
tail +2 $(srcdir)/iverilog.man.in >> $@
tail -n +2 $(srcdir)/iverilog.man.in >> $@

iverilog.ps: iverilog.man
$(MAN) -t iverilog.man > iverilog.ps
Expand Down
2 changes: 1 addition & 1 deletion vvp/Makefile.in
Expand Up @@ -133,7 +133,7 @@ lexor.cc: $(srcdir)/lexor.lex

vvp.man: $(srcdir)/vvp.man.in ../version.exe
../version.exe `head -1 $(srcdir)/vvp.man.in`'\n' > $@
tail +2 $(srcdir)/vvp.man.in >> $@
tail -n +2 $(srcdir)/vvp.man.in >> $@

vvp.pdf: vvp.man
$(MAN) -t $(srcdir)/vvp.man | $(PS2PDF) - vvp.pdf
Expand Down

0 comments on commit b85b2d8

Please sign in to comment.