# Tool for merging WEB file with its change file

Is there any tool that can take a sample.web and sample.ch file and produce a merged.web file as output?

• I'm familiar with WEB, but what exactly is ch, again? (It may even be beneficial to produce something of an MWE -- maybe a minimal WEB file, a minimal change file, and what the result should be after mysteryprog sample.web sample.ch -o merged.web (say).) – Sean Allred Mar 29 '13 at 12:00
• *.ch means change file. – codefx Mar 29 '13 at 12:02
• Yes, I am looking for the mysteryprog. I read that platform dependent changes to a .web program should be made by adding a change file (.ch). I am trying to find if there is a program that can produce the resulting merge.web file. – codefx Mar 29 '13 at 12:05
• The whole point of a .ch file is to use it along with the .web with tangle to extract the program. – Joseph Wright Mar 29 '13 at 12:08
• So, tagging of of Joseph's comment, merging the web and change files would be a violation of intent -- it was never meant to be that way. It's like making new paragraphs in LaTeX by saying \newline\newline. If you need platform-dependent documentation, I would believe you'd use weave similarly. – Sean Allred Mar 29 '13 at 12:10

The tool is tangle try:
   tangle inputfile changefile outputfile poolfile

If not available with standard distributions, try ctangle. Also instructive is to read webman. Good reference here.
• I thought weave was for extracting the .tex part of a WEB file – Joseph Wright Mar 29 '13 at 13:36