CPIF(1)

πŸ’– CPIF β€” selectively update files πŸ’–

okay bestie, welcome to cpif(1), a General Commands Manual situation, and honestly? she's a tiny queen with one job and she does it flawlessly. πŸŽ€


✨ NAME ✨

cpif β€” selectively update files πŸ¦‹


🌸 SYNOPSIS 🌸

cpif [-eq|-ne] file ...

πŸ’… DESCRIPTION πŸ’…

so. cpif is an auxiliary tool β€” a little helper bestie β€” meant to hang out with notangle(1) and make(1). she's not the main character, she's the best friend who makes the main character look good. πŸ‘‘

here's the vibe: cpif compares its standard input to each of the named files, and she overwrites the file if the comparison succeeds, or if the named file just... doesn't exist yet (no file? no problem, we ball 😭).

and if you don't specify either -eq or -ne, the default is -ne. periodt. that's the whole personality.

the classic glow-up usage is in this default rule, and it's literally made for a Makefile:

.nw.h: ; notangle -Rheader $*.nw | cpif $*.h

look at that pipeline. notangle does the tangling, cpif does the deciding, and your header file gets updated only when it actually needs to be. iconic behaviour, no notes. πŸ”₯


🫢 SEE ALSO 🫢


🌈 VERSION 🌈

this man page is from noweb version 2.12 ✨


πŸ’œ AUTHOR πŸ’œ

Norman Ramsey, Tufts University. Internet address Norman.Ramsey@tufts.edu.

Noweb home page at http://www.cs.tufts.edu/~nr/noweb.


okay that's the whole page, go forth and update your files selectively, bestie πŸ’–βœ¨

local Β· 10/40/2008 Β· sending you love from the CPIF(1) corner of the manual, mwah πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from