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
|
<?php
|
||||||
abstract class Plugin {
|
abstract class PluginTemplate {
|
||||||
const API_VERSION_COMPAT = 1;
|
const API_VERSION_COMPAT = 1;
|
||||||
|
|
||||||
/** @var PDO $pdo */
|
/** @var PDO $pdo */
|
|
@ -15,8 +15,11 @@ grep 'hook_.*(' ../classes/pluginhost.php | sed -e 's#[\t ]*/[* ]*##' \
|
||||||
EOF
|
EOF
|
||||||
done
|
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
|
case $L in
|
||||||
|
*PluginTemplate* )
|
||||||
|
echo "$L" | sed 's/PluginTemplate/Plugin/'
|
||||||
|
;;
|
||||||
*AUTO_GENERATED_HOOKS_GO_HERE* )
|
*AUTO_GENERATED_HOOKS_GO_HERE* )
|
||||||
echo "\t/* plugin hook methods (auto-generated) */\n"
|
echo "\t/* plugin hook methods (auto-generated) */\n"
|
||||||
cat $TMPFILE
|
cat $TMPFILE
|
||||||
|
|
Loading…
Reference in New Issue