experimental: also don't keep base plugin template as a non-analyzed file

This commit is contained in:
Andrew Dolgov 2021-11-13 18:21:04 +03:00
parent b381e95792
commit 70051742af
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<?php
abstract class Plugin {
abstract class PluginTemplate {
const API_VERSION_COMPAT = 1;
/** @var PDO $pdo */

View File

@ -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