MAKESH(1)
π MAKESH(1) β like, the manual page but make it cute π
okay bestie, so this is makeSH, which lives in the General Commands Manual section 1 (you know, the "commands you type at a shell" section, iykyk). Buckle up, it's giving build-tool fairy godmother π§β¨
β¨ NAME β¨
makeSH β a .SH script maker π
πΈ SYNOPSIS πΈ
makeSH files
π¦ DESCRIPTION π¦
So here's the tea: makeSH looks at one or more scripts and spits out a .SH file that, when you run it under sh, will literally recreate the original script. Like a photocopier but for scripts. Iconic behavior honestly π
The .SH script it produces has two sections, and both of them contain code that's destined for the output. Here's the difference, and it matters:
- The first section gets variable substitutions done on it β taking values from
config.shπ - The second section does not. No substitutions, no notes. Just vibes.
Now, makeSH has no idea which variables you actually want substituted (it's not a mind reader, bestie π), so it just throws the whole script into the second section. Every last line. It's up to you to go in there and insert any variable substitutions you want in the first section, for any values you want pulled from config.sh. That's your job, not its job. The way that division of labor is so real.
π«Ά Pro tip from the page itself: you should runmakeSHfrom within your top-level directory, and use the relative path to the file as an argument. Why? So that the"Extracting ..."line printed while running the produced.SHfile later on will give that same path. Consistency is the moment. Periodt.
π AUTHOR π
Larry Wall <lwall@netlabs.com> β yes, that Larry Wall, the legend himself πβ
π₯ SEE ALSO π₯
Go read those too, they're all part of the same little ecosystem and honestly the lore runs deep π§π
π BUGS π
Okay so, not me exposing the author but here's what the page literally says: it could assume that variables from metaconfig's Glossary need to be initialized in the first section... but the author says they're too lazy to make it do that π
So like. That's the whole bug report. We respect the honesty. No cap. π
and that's the whole page, bestie β written by Larry Wall, part of the LOCAL collection, and yeah, no version number or date on this one, she's timeless πβ¨πΈπ¦ππ π«Ά
π¦ where this page comes from
- debian bookworm: dist 1:3.5-236-1 Β· Artistic-1.0-Perl
- debian trixie: dist 1:3.5-236-1.1 Β· Artistic-1.0-Perl
- ubuntu jammy: dist 1:3.5-236-1 Β· Artistic-1.0-Perl
- ubuntu noble: dist 1:3.5-236-1 Β· Artistic-1.0-Perl
- ubuntu questing: dist 1:3.5-236-1.1
- ubuntu resolute: dist 1:3.5-236-1.1build1 Β· Artistic-1.0-Perl
- ubuntu stonking: dist 1:3.5-236-1.1build1 Β· Artistic-1.0-Perl
- Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms