Rename tools/amalgam to tools/amalgam.py

PUBLISHED_FROM=7c6cb5517d0d2b13f29af29c511dd7f0baa5acc6
This commit is contained in:
Marko Mikulicic 2016-11-21 17:40:06 +00:00 committed by Cesanta Bot
parent a23daa1547
commit c848372bbe

View File

@ -7,7 +7,7 @@ This directory contains utilities to split and re-constitute amalgamated files.
Here's how `mongoose.c` can be split into its consituent parts: Here's how `mongoose.c` can be split into its consituent parts:
``` ```
$ tools/unamalgam mongoose.c $ tools/unamalgam.py mongoose.c
=> mongoose/src/internal.h => mongoose/src/internal.h
=> common/cs_dbg.h => common/cs_dbg.h
... ...
@ -16,7 +16,7 @@ $ tools/unamalgam mongoose.c
This produces directories and files under `mongoose/` and `common/` that are easeier to work with. This produces directories and files under `mongoose/` and `common/` that are easeier to work with.
It also produces `mongoose.c.manifest` which can later be used to reconstruct the file back: It also produces `mongoose.c.manifest` which can later be used to reconstruct the file back:
``` ```
$ tools/amalgam --prefix=MG --public-header=mongoose.h $(cat mongoose.c.manifest) > mongoose.c $ tools/amalgam.py --prefix=MG --public-header=mongoose.h $(cat mongoose.c.manifest) > mongoose.c
``` ```
The same applies to `mongoose.h`, except `--public-header` should be omitted during amalgamation. The same applies to `mongoose.h`, except `--public-header` should be omitted during amalgamation.