experimental: also don't keep base plugin template as a non-analyzed file
This commit is contained in:
parent
b381e95792
commit
70051742af
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
abstract class Plugin {
|
||||
abstract class PluginTemplate {
|
||||
const API_VERSION_COMPAT = 1;
|
||||
|
||||
/** @var PDO $pdo */
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue