0990a6996a
Adds dist/ packaging skeleton for the host Linux build:
dist/tlc-1.0.0/INSTALL.sh — generic tarball installer (system or --user)
dist/tlc-1.0.0/man/tlc.1 — man page for the file manager
dist/tlc-1.0.0/man/tlcedit.1 — man page for the standalone editor
dist/tlc-1.0.0/man/tlcview.1 — man page for the standalone viewer
dist/PKGBUILD — Arch Linux build recipe
dist/build_deb.sh — Debian/Ubuntu .deb builder
dist/deb/DEBIAN/control — Debian control file (binary-arch template)
dist/.gitignore — excludes built binaries + config (rebuilt at packaging)
Build outputs (NOT in git, produced locally on demand):
tlc-1.0.0-linux-x86_64.tar.gz 5.5 MB generic tarball
tlc_1.0.0-1_amd64.deb 2.3 MB Debian package
PLAN.md §17.8 added documenting that §17.4 P1-P4 are now complete
(commit 6c30edaf3e already landed). The §17.6 acceptance criterion
is met: grep for raw 'frame.render_widget(Clear' returns exactly 4
sites (terminal/popup.rs itself, filemanager/tree.rs full-screen,
and the two F9 top menu bars — all intentional). widget/dialog.rs
no longer appears.
P5 (SaveBeforeClose Y/N/Esc legend), P6 (viewer/editor SaveBeforeClose
unification), P7 (~15 decorative key-legend hints) remain deferred —
see §17.4 for rationale.
Header status line bumped to reflect P1-P4 completion + P5-P7 deferral.
51 lines
1.5 KiB
Bash
Executable File
51 lines
1.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# TLC Linux install script — installs tlc / tlcedit / tlcview from this tarball.
|
|
# Run as root (or with sudo) to install system-wide; otherwise use --user.
|
|
|
|
set -euo pipefail
|
|
|
|
prefix="/usr/local"
|
|
bindir="${prefix}/bin"
|
|
mandir="${prefix}/share/man/man1"
|
|
datadir="${prefix}/share/tlc"
|
|
configdir="/etc/xdg/tlc"
|
|
|
|
user_install=0
|
|
if [[ "${1:-}" == "--user" ]]; then
|
|
prefix="${HOME}/.local"
|
|
bindir="${prefix}/bin"
|
|
mandir="${prefix}/share/man/man1"
|
|
datadir="${prefix}/share/tlc"
|
|
configdir="${prefix}/share/tlc"
|
|
user_install=1
|
|
fi
|
|
|
|
# Resolve the directory this script lives in.
|
|
script_dir="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
|
|
|
|
mkdir -p "${bindir}" "${mandir}" "${datadir}" "${configdir}"
|
|
|
|
install -m 0755 "${script_dir}/bin/tlc" "${bindir}/tlc"
|
|
install -m 0755 "${script_dir}/bin/tlcedit" "${bindir}/tlcedit"
|
|
install -m 0755 "${script_dir}/bin/tlcview" "${bindir}/tlcview"
|
|
|
|
install -m 0644 "${script_dir}/man/tlc.1" "${mandir}/tlc.1"
|
|
install -m 0644 "${script_dir}/man/tlcedit.1" "${mandir}/tlcedit.1"
|
|
install -m 0644 "${script_dir}/man/tlcview.1" "${mandir}/tlcview.1"
|
|
|
|
cp -r "${script_dir}/config/"* "${configdir}/"
|
|
cp -r "${script_dir}/locales/"* "${datadir}/locales/"
|
|
cp -r "${script_dir}/mc-skins/"* "${datadir}/mc-skins/"
|
|
|
|
cat <<EOF
|
|
|
|
TLC 1.0.0 installed to:
|
|
binaries: ${bindir}
|
|
man pages: ${mandir}
|
|
system config: ${configdir}
|
|
read-only data: ${datadir}
|
|
|
|
Run 'tlc' to launch. Edit ~/.config/tlc/config.toml (or ${configdir}
|
|
for system-wide) to customise. See 'tlc help' for key bindings.
|
|
EOF
|