en:user_advanced:using_expand_macros_script
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | en:user_advanced:using_expand_macros_script [2023/03/13 01:46] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | |||
+ | ====== Using the expand_macros.pl script ====== | ||
+ | |||
+ | * The '' | ||
+ | < | ||
+ | expand_macros.pl -s ' | ||
+ | </ | ||
+ | * get definition of _query: | ||
+ | < | ||
+ | expand_macros.pl _query: | ||
+ | </ | ||
+ | output: | ||
+ | < | ||
+ | |||
+ | * query: | ||
+ | { _If_(" | ||
+ | </ | ||
+ | |||
+ | * get macros that are used by _query: | ||
+ | < | ||
+ | expand_macros.pl -s -d 2 _query: | ||
+ | </ | ||
+ | output: | ||
+ | < | ||
+ | |||
+ | * query: | ||
+ | * query: | ||
+ | * query: | ||
+ | * query: | ||
+ | * preferences: | ||
+ | * query: | ||
+ | * query: | ||
+ | * query: | ||
+ | * query: | ||
+ | * query: | ||
+ | </ | ||
+ | |||
+ | * get macros that use " | ||
+ | < | ||
+ | expand_macros.pl -r _pagescriptextra_ | ||
+ | </ | ||
+ | output: | ||
+ | < | ||
+ | |||
+ | * Style: | ||
+ | { < | ||
+ | |||
+ | * homepref: | ||
+ | { _preferences: | ||
+ | |||
+ | * get macros whose definitions contain " | ||
+ | < | ||
+ | expand_macros.pl " | ||
+ | </ | ||
+ | output: | ||
+ | < | ||
+ | |||
+ | * collector: | ||
+ | { <img src=" | ||
+ | |||
+ | * get a macro that is defined in the c++ code (you need to extract a greenstone source archive and point to its base location, either via the ' | ||
+ | < | ||
+ | expand_macros.pl --source=/ | ||
+ | </ | ||
+ | output: | ||
+ | < | ||
+ | |||
+ | * collector: | ||
+ | { " | ||
+ | </ | ||
+ | |||
+ | * additionally, | ||
+ | < | ||
+ | expand_macros.pl -i | ||
+ | </code | ||
+ | output: | ||
+ | < | ||
+ | | ||
+ | [you can get help at any time by typing ' | ||
+ | |||
+ | enter macro name (without package specification) [leave empty to quit] | ||
+ | > pagescriptextra | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | > 6 | ||
+ | |||
+ | * query: | ||
+ | { _If_(" | ||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | > 1 | ||
+ | |||
+ | | ||
+ | [1] query | ||
+ | > 1 | ||
+ | |||
+ | * query: | ||
+ | { // query scripts generated by \_query: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | var args=""; | ||
+ | args = "& | ||
+ | _If_(_cgiargqf_, | ||
+ | | ||
+ | \} | ||
+ | | ||
+ | | ||
+ | "& | ||
+ | \} | ||
+ | } } | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | [1] formfunctions | ||
+ | [2] searchfunctions | ||
+ | [3] standardfunctions | ||
+ | > | ||
+ | |||
+ | | ||
+ | [1] query | ||
+ | > | ||
+ | |||
+ | | ||
+ | [1] formpagescriptextra | ||
+ | [2] historypagescriptextra | ||
+ | [3] selectpagescriptextra | ||
+ | > | ||
+ | |||
+ | | ||
+ | [1] Style | ||
+ | [2] browse | ||
+ | [3] collector | ||
+ | [4] homepref | ||
+ | [5] preferences | ||
+ | [6] query | ||
+ | > | ||
+ | |||
+ | enter macro name (without package specification) [leave empty to quit] | ||
+ | > | ||
+ | </ | ||
+ | |||
+ | //Thanks to Jens Wille// |
en/user_advanced/using_expand_macros_script.txt · Last modified: 2023/03/13 01:46 by 127.0.0.1