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 πŸ’–