seq @VERSION@ for Mac OS X 10.4 Tiger

seq prints a sequence of numbers, one on each line. This is the seq of
FreeBSD @VERSION@, which is also the seq of Mac OS X 10.7 and later. Tiger
has jot, but scripts written for Linux and for today's Macs use seq. It
is built for every Mac that runs Tiger: PowerPC (G3, G4 and G5) and
Intel. It is one universal program and needs nothing that Tiger does not
have:

  /usr/local/bin/seq
      seq
  /usr/local/share/man/man1/seq.1
      its manual page
  /usr/local/share/doc/seq-tiger
      this Read Me, the license, the patches, update-shell-profile.sh

Using it

The installer adds /usr/local/bin to the PATH in your shell profile
(~/.bash_profile for bash, the shell Tiger gives new accounts, or the
.bash_login or .profile you already have) and keeps the old profile beside
it as .seqsave. Open a new Terminal window and give seq the last number,
or the first and the last, or the first, the step and the last.

  seq 5
      1 to 5
  seq 0 10 100
      0, 10, 20 and on to 100
  seq 10 1
      10 down to 1
  seq -w 8 12
      08 to 12, all of the same width
  seq -s , 5
      1,2,3,4,5 on one line
  seq -f file%03g.txt 3
      file001.txt, file002.txt, file003.txt
  for i in $(seq 3); do echo "pass $i"; done
      a loop in the shell, three times

man seq is the whole manual.

One change: whole numbers in full

FreeBSD's seq, and the seq of today's macOS, print each number with
printf's %g when there is no -f. %g prints a million as 1e+06, so
seq 1000000 1000001 prints 1e+06 two times. This build prints whole
numbers in full, as seq does on Linux, when the first number, the step and
the last number are all whole and below 2^53 (9007199254740992).
Fractions are printed as before, and -f still sets the format. The
patch, whole-numbers.patch, is in /usr/local/share/doc/seq-tiger, with
seq.1.patch, which says so in the manual page. That one also names
--equal-width, the long option for -w (FreeBSD's page says
--fixed-width, which seq does not take), and stops two warnings that
Tiger's man printed above the page.

Not as on Linux

This seq counts down when the first number is greater than the last:
seq 10 1 prints 10 to 1, and seq 0 prints 1 and 0. GNU's seq on Linux
prints nothing for these. GNU's seq also counts exactly past 2^53; this
seq keeps each number as a double.

Uninstalling

In Terminal:

  sudo rm /usr/local/bin/seq
  sudo rm /usr/local/share/man/man1/seq.1
  sudo rm -rf /usr/local/share/doc/seq-tiger
  sudo rm -rf "/Library/Receipts/seq @VERSION@.pkg"

If nothing else you use is in /usr/local/bin, take the "Setting PATH for
seq" lines out of your shell profile.

How it was made

seq was cross-compiled on Linux with GCC 13.4 for powerpc-apple-darwin8
(any G3 and up) and i686-apple-darwin8, against the Mac OS X 10.4u SDK.
Its source needed no change for Tiger; one patch changes how whole
numbers are printed, and the other the manual page to match. seq loads
only Tiger's libSystem. The package and this disk image were made on Mac
OS X 10.4.11 with its own mkbom, pax and hdiutil.

Everything it was built from (FreeBSD's seq.c and seq.1, the patches and
the build scripts) is in seq-@VERSION@-tiger-source.tar.gz, beside this disk
image.

Built @DATE@.
