My goal is: To amalgam/unamalgam the source code according to
My actions are:
a) call first the unamalgam.py
$ tools/unamalgam.py mongoose.c
mongoose are createtd. The folders contain *.c and *.h files. A mongoose.c.manifest is created.
Then I call
$ tools/amalgam.py --prefix=MG --public-header=mongoose.h $(cat mongoose.c.manifest) > mongoose.c
- The result I see is: A file mongoose.c with following content:
#line 1 “./$(cat”
#line 1 “./mongoose.c.manifest)”
- My expectation & question is: I expected to get the original mongoose.c file.
- why is the original mongoose.c file not created?
- why is the workflow in Readme.md in “reverse” order? I expected the process to be rather
Development in multiple c and h files -> finally call amalgam.py to generate mongoose.c and mongoose.h. Why unamalgam.py at all? Shouldn’t it be a one way process?