aboutsummaryrefslogtreecommitdiff
path: root/contrib/cpt-chroot
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-03-12 10:47:17 +0000
committermerakor <cem@ckyln.com>2021-03-12 10:47:17 +0000
commitf086f31f2e7c0418d888a2db5accf78ae0e5d8e0 (patch)
tree87f775cc2fc0e61996c5a6b60d85eff04695a229 /contrib/cpt-chroot
parentdc0e7a47c30646d3f686871920b25c3bf9c7acbe (diff)
downloadcpt-f086f31f2e7c0418d888a2db5accf78ae0e5d8e0.tar.gz
cpt-chroot: add manual page output
FossilOrigin-Name: 544a7e5d86eb5e1b8804a9ca907fee663a42a2632e820d62f37f07f66001beeb
Diffstat (limited to 'contrib/cpt-chroot')
-rwxr-xr-xcontrib/cpt-chroot10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/cpt-chroot b/contrib/cpt-chroot
index fa66e84..2f7eee7 100755
--- a/contrib/cpt-chroot
+++ b/contrib/cpt-chroot
@@ -1,6 +1,16 @@
#!/bin/sh -e
# Enter a chroot
+## SYNOPSIS:
+## .Nm cpt-chroot
+## .Op Ar dir
+
+## DESCRIPTION:
+## .Nm
+## is a wrapper script to chroot inside other root filesystems. It automatically
+## mounts important filesystems in to the chroot directory, and unmounts them
+## when the user exits the chroot and cleans up leftover host files.
+
log() {
printf '\033[32m->\033[m %s.\n' "$*"
}