20230322
[shlib.git] / bin / code.catalog
blobbd9269c842ff7149514dcaee733890fb8ae92369
1 #!/usr/bin/catalog
2 ############################################################
3 # source: code.catalog
4 # author: devenkong(18151155@qq.com)
5 # date: 2022-10-01
6 ############################################################
7 # Copyright (C) 2022- Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software 
9 # Foundation gives unlimited permission to copy, distribute 
10 # and modify it.
11 ############################################################
12 # note:
13 #     this is a sample catalog file for codegen.
14 ############################################################
17 # 1. paramters for global catalog file
19 [param]
20 env PWD=$PROJ_DIR
21 # include imi file for public paramter define.
22 minc catalog.imi
23 minc codegen/c-lang/c-lang-featrue.imi
24 minc codegen/c-lang/c-lang-tmpl.imi
25 minc codegen/codegen.imi
29 # 2. catalog for dir structure
31 [catalog-dir]
32 <1>.[dir].FirstModuleSet."first module set"
33     <1>.[item].TestModule."program module for testing"
34     # means it's catalog id is followed from sbove.
35     # it's usefull when i copy text to other place.
36     <->.[item].NextTestModule."the other test module"
37 <->.[dir].SecondModuleSet."second module set"
38     <1>.[item].ThirdTestModule."the third test module"
40 <catalog-bottom>
44 # 3. catalog for item content
46 [catalog-content]
47 <->.[item].TestModule."program module for testing"
48     <1>.[var].TestVar."test var for this module"
49     <->.[func].TestFunc."test function for this module"
50     
51 <->.[item].NextTestModule."the other test module"
52     <1>.[var].TestVar2."test var2 for this module"
53     <->.[func].TestFunc2."test function2 for this module"
54     
55 <->.[item].ThirdTestModule."the third test module"
56     <1>.[var].TestVar3."test var3 for this module"
57     <->.[func].TestFunc3."test function3 for this module"
59 <catalog-bottom>