summary refs log tree commit diff
path: root/src/util/plugin/plugin_data_objects/_gen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/plugin/plugin_data_objects/_gen.sh')
-rwxr-xr-xsrc/util/plugin/plugin_data_objects/_gen.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/util/plugin/plugin_data_objects/_gen.sh b/src/util/plugin/plugin_data_objects/_gen.sh
new file mode 100755

index 00000000..9fbd1749 --- /dev/null +++ b/src/util/plugin/plugin_data_objects/_gen.sh
@@ -0,0 +1,21 @@ +#!/bin/sh +while read event +do + if [ ! -f "${event}EventArgs.ts" ] + then + echo Making event $event... + ( + echo "export interface Pre${event}EventArgs {" + echo ' ' + echo '}' + echo '' + echo "export interface On${event}EventArgs {" + echo ' ' + echo '}' + ) > ${event}EventArgs.ts + fi +done < _pdo + +echo '' + +node ../../../../scripts/gen_index.js .. --recursive \ No newline at end of file