Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.02 KB

File metadata and controls

44 lines (31 loc) · 1.02 KB

Installation

Quick Install

curl -fsSL https://raw.githubusercontent.com/typeless/putup/main/install.sh | sh

Options:

  • PUTUP_VERSION=v0.1.0 — install a specific version
  • PUTUP_INSTALL_DIR=/usr/local/bin — install to a custom directory (default: ~/.local/bin)

Requirements

  • C++20 compiler: GCC 11+ or Clang 14+

Building from Source

git clone <repository-url>
cd putup
make
sudo install build/putup /usr/local/bin/

Bootstrapping

Putup is self-hosting (it builds itself with its own Tupfiles). Bootstrap scripts are provided for initial installation on a system without putup:

./bootstrap-linux.sh    # Linux
./bootstrap-macos.sh    # macOS
./bootstrap-mingw.sh    # Windows (MSYS2/MinGW)

Regenerating Bootstrap Scripts

After making changes to the build, regenerate the scripts with:

putup show script -B build > bootstrap-linux.sh
CONFIG=macosx putup show script -B build > bootstrap-macos.sh
CONFIG=mingw putup show script -B build > bootstrap-mingw.sh