fd @VERSION@ for Mac OS X 10.4 Tiger

fd @VERSION@, the finder of files by David Peter and many others, built for
Mac OS X 10.4 on every Mac that runs it: PowerPC (G3, G4 and G5) and Intel.
It is one universal program, written in Rust and compiled for Tiger as
ripgrep is. It needs nothing that Tiger does not have:

  /usr/local/bin/fd
      fd @VERSION@
  /usr/local/share/man/man1/fd.1
      its manual page
  /usr/local/share/doc/fd-tiger
      this Read Me, fd's README and licenses, THIRD-PARTY.txt,
      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 .fdsave. Open a new Terminal window, go with cd to a folder, and type
fd and part of a name.

  fd report
      files and folders below this one with "report" in the name
  fd -e c -e h
      the C files and headers below this one
  fd -t x . /usr/local/bin
      the programs in /usr/local/bin
  fd '^Makefile$' ~/Developer
      a regular expression, matched against each name
  fd -e txt -x wc -l {}
      run a command on each file found, several at once

fd leaves out hidden files (-H takes them in) and the files that a
.gitignore names inside a Git repository (-I takes them in). man fd is the
whole manual, and fd --help lists every option.

Speed

fd searches with a thread for each processor. On a 1.25 GHz G4 it lists
the 36,564 entries of /usr in about 2 seconds, where find takes under one:
this build has no vector code and its C is compiled at -O1, as ripgrep's
is. In a folder of a few thousand files it answers in under half a second.

Uninstalling

In Terminal:

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

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

How it was made

Rust has no compiler for Tiger, nor for any PowerPC Mac. fd and the 52
crates it uses were turned into C by mrustc, with Rust 1.74's standard
library, and the C was 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. Their source is not changed. Two small files give
the program what Tiger's libSystem lacks or names differently: ripgrep's,
and one of fd's own for faccessat(). fd loads only Tiger's libSystem,
libiconv and CoreFoundation. The package and this disk
image were made on Mac OS X 10.4.11 with its own mkbom, pax and hdiutil.

fd 9.0.0 is the newest fd that this Rust can build: fd 10 needs Rust
1.77.

Everything it was built from (fd's source, each crate as crates.io serves
it, and the build scripts) is in fd-@VERSION@-tiger-source.tar.gz, beside
this disk image.

Built @DATE@.
