summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-13 19:36:24 +0300
committerAndrew Dolgov <[email protected]>2021-11-13 19:36:26 +0300
commit9845d5fd15c8e123f31f39574d2b48437a3e0586 (patch)
tree68becbfa1724630847a5e27cc1a86dc91ceab7f0 /utils
parentedd476e7fea4d763bedbb0e21385f2d58ce001d5 (diff)
revert all plugin base class related changes to keep compatibility with extant plugins (for the time being)
Diffstat (limited to 'utils')
-rw-r--r--utils/generate-plugin-hook-prototypes.sh33
1 files changed, 0 insertions, 33 deletions
diff --git a/utils/generate-plugin-hook-prototypes.sh b/utils/generate-plugin-hook-prototypes.sh
deleted file mode 100644
index edf1ed5fe..000000000
--- a/utils/generate-plugin-hook-prototypes.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/sh
-
-TMPFILE=$(mktemp)
-
-grep 'hook_.*(' ../classes/pluginhost.php | sed -e 's#[\t ]*/[* ]*##' \
- -e 's# [*]/$##' \
- -e 's# *(byref) *##' \
- -e 's#GLOBAL: ##' | while read F; do
-
- cat << EOF >> $TMPFILE
- function $F {
- user_error("Dummy method invoked.", E_USER_ERROR);
- }
-
-EOF
-done
-
-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
- ;;
- * )
- echo "$L"
- ;;
- esac
-done > ../classes/plugin.php
-
-rm -f -- $TMPFILE