relpath(1)
π relpath β the Free Pascal relative path tool, bestie edition β¨
okay so real quick, this page is from the relpath(1) manual β it's a little utility that lives in the Free Pascal world and it's here to do exactly one iconic thing: math out a relative path for you π
β¨ NAME β¨
relpath β literally described on the page as "The Free Pascal file deletion tool."
not me reading that and going π β yes, that is verbatim what the NAME section says, so we're keeping it exactly as-is, no notes, no edits, periodt.
π¦ SYNOPSIS π¦
relpath [file or directory] [base directory]
that's the whole vibe. two args, that's it, she's low maintenance π
πΈ DESCRIPTION πΈ
relpath is an utility for computing relative path according to a given base directory.
and why do we care? bestie, because it's useful for libraries that are to install .lpk in order to be used with lazarus. that's the whole reason she exists π
here's the lore: as these libraries may be compiled without need to build depend on Lazarus, we add it in the fp-utils package β which is likely to be used by any big project which build depends on fp-compiler. so basically she sneaks into a package you already have anyway. main character energy fr fr π
π USAGE π
relpath takes the following arguments:
file or directoryβ the target file or directory for which relative path should be computed. like, what are we pathing, babes πbase directoryβ the base directory according to which the relative patch should be computed. yes it says patch in the original and yes we are keeping it, it's iconic, we don't touch it π
π SEE ALSO π
readlink(1)β go say hi to her too, she's also about paths π
and that's the whole page!! π«Ά cute little sign-off: this gem is a Free Pascal situation, dated 7 May 2013 β so she's been out here computing relative paths since before some of us could walk πβ slay forever, relpath, we love you, no cap π
π¦ where this page comes from
- debian bookworm: fp-utils-3.2.2 3.2.2+dfsg-20 Β· GPL-2.0-or-later
- debian trixie: fp-utils-3.2.2 3.2.2+dfsg-46 Β· GPL-2.0-or-later
- ubuntu jammy: fp-utils-3.2.2 3.2.2+dfsg-9ubuntu1 Β· GPL-2.0-or-later
- ubuntu noble: fp-utils-3.2.2 3.2.2+dfsg-32 Β· GPL-2.0-or-later
- ubuntu questing: fp-utils-3.2.2 3.2.2+dfsg-46
- ubuntu resolute: fp-utils-3.2.2 3.2.2+dfsg-49 Β· GPL-2.0-or-later
- ubuntu stonking: fp-utils-3.2.2 3.2.2+dfsg-51 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms