diff options
author | Andrew Dolgov <[email protected]> | 2021-11-13 18:21:04 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-13 18:21:04 +0300 |
commit | 70051742afdd05ab66d9265edb063eb5b6615765 (patch) | |
tree | 1f348cdee59b7e1be2f498464bf10f307b620063 /utils/generate-plugin-hook-prototypes.sh | |
parent | b381e9579295b238d44532a50edb6422b8c6b4ab (diff) |
experimental: also don't keep base plugin template as a non-analyzed file
Diffstat (limited to 'utils/generate-plugin-hook-prototypes.sh')
-rw-r--r-- | utils/generate-plugin-hook-prototypes.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/generate-plugin-hook-prototypes.sh b/utils/generate-plugin-hook-prototypes.sh index 586f3f2c6..edf1ed5fe 100644 --- a/utils/generate-plugin-hook-prototypes.sh +++ b/utils/generate-plugin-hook-prototypes.sh @@ -15,8 +15,11 @@ grep 'hook_.*(' ../classes/pluginhost.php | sed -e 's#[\t ]*/[* ]*##' \ EOF done -cat ../classes/plugin.tpl | while IFS=\n read L; do +cat ../classes/plugin-template.php | while IFS=\n read L; do case $L in + *PluginTemplate* ) + echo "$L" | sed 's/PluginTemplate/Plugin/' + ;; *AUTO_GENERATED_HOOKS_GO_HERE* ) echo "\t/* plugin hook methods (auto-generated) */\n" cat $TMPFILE |