ripgrep @VERSION@ for Mac OS X 10.4 Tiger

ripgrep @VERSION@ (rg), the line-oriented search tool by Andrew Gallant,
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 and needs nothing that Tiger does
not have:

  /usr/local/bin/rg
      ripgrep @VERSION@
  /usr/local/share/man/man1/rg.1
      its manual page
  /usr/local/share/doc/ripgrep-tiger
      this Read Me, GUIDE.md and FAQ.md, the licenses,
      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 .ripgrepsave. Open a new Terminal window and try:

  rg kern_return /usr/include
  rg -i tiger ~/Documents
  rg --files | rg '\.plist$'

In a folder, rg searches it and every folder inside it, with one thread for
each processor, and leaves out hidden files and folders, binary files and
what a .gitignore, .ignore or .rgignore file names. rg -uuu searches
everything. Text piped into rg, with no folder named, is searched instead.
man rg tells every option; GUIDE.md in the doc folder walks through them.

If you installed from the command line as another user, or changed shells,
run sh /usr/local/share/doc/ripgrep-tiger/update-shell-profile.sh again.

What works on Tiger

Everything in ripgrep @VERSION@ but -P:

- Regular expressions with Unicode, -i and smart case, -w, -o, -v, -c, -l,
  context (-A, -B, -C), replacement (-r), multi-line search (-U), --json.
- Globs (-g), file types (-t, --type-list), --sort, --files, --max-depth.
- Files in UTF-16 with a byte order mark, and other encodings with -E.
- Compressed files with -z, through Tiger's own gzip, bzip2 and
  uncompress; .xz, .lz4, .zst and .br need those programs. --pre runs a
  program of your own on each file.
- Colour in Terminal and TigerTTY: file names, line numbers and matches,
  whenever rg writes to a terminal (rg --color=never turns it off).

What Tiger does not have

- -P (PCRE2, for look-around and back-references) is not built in: rg
  says so and stops. ripgrep's own regular expressions do the rest.
- --sort created sorts by the HFS+ creation date, which Tiger gives for a
  path; a file's creation date read from an open file is 0.

Uninstalling

In Terminal:

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

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

How it was made

Rust has no compiler for Mac OS X 10.4, nor for any PowerPC Mac. This
ripgrep was compiled with mrustc, which turns Rust into C: ripgrep, the 32
crates it is made of and Rust 1.74's standard library. GCC 13.4 cross
compilers for powerpc-apple-darwin8 (any G3 and up) and i686-apple-darwin8
compiled that C on Linux against the Mac OS X 10.4u SDK. A small
compatibility file gives the standard library the calls of Mac OS X 10.5
and later that it expects (stat and readdir with 64-bit inode numbers,
posix_memalign, an allocating realpath), made of what Tiger has, and three
small patches let it open files and start programs Tiger's way. rg loads
only Tiger's libSystem and libiconv. 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 (ripgrep's release, the crates as crates.io
publishes them, the compatibility file, the patches and the build scripts)
is in ripgrep-@VERSION@-tiger-source.tar.gz, beside this disk image.

Licenses

ripgrep is under the Unlicense or the MIT license, as you choose (COPYING,
UNLICENSE, LICENSE-MIT). THIRD-PARTY.txt lists the crates and the parts of
Rust's standard library compiled into rg, each with its license.

Built @DATE@.
