From ac69399cb4d6cf44f870d9fbd7914a204ac26a51 Mon Sep 17 00:00:00 2001 From: Ben Coman Date: Wed, 2 Jan 2019 12:53:23 +0800 Subject: [PATCH] Add pluginreport script --- scripts/pluginReport | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/pluginReport diff --git a/scripts/pluginReport b/scripts/pluginReport new file mode 100755 index 0000000000..298b172047 --- /dev/null +++ b/scripts/pluginReport @@ -0,0 +1,16 @@ +#!/bin/sh +# 2019-01-02:Ben-Coman: Created script +# Generate plugin data for spreadsheet matrix Build x Dialect x Plugin +# at https://docs.google.com/spreadsheets/d/15L-c7ws41TXOIwUhfd-zTAkbKhpyLn45BimeMrKwrQY/edit?usp=sharing +# +# Usage: pluginReport [DIRECTORY] +# where to copy-paste into spreadsheet above DIRECTORY must be the opensmalltalk-vm root directory e.g. `scripts/pluginReport .` +# but for other purposes can be any build.* directory. + +cd $1 +find . \( -name "*plugins.int" -o -name "*plugins.ext" \) -exec sh -c "cat {} | sed -r '/^(\s*#|\s*$|.*=)/d;' | sed -e 's%^%{}/%' | cut -d' ' -f1 " \; +# Disected... +# Process both int and ext plugin files: \( -name "*plugins.int" -o -name "*plugins.ext" \) -exec sh -c "cat {} +# Strip out comments and blank lines: sed -r '/^(\s*#|\s*$|.*=)/d;' +# Prefix filename to each plugin line: sed -e 's%^%{}/%' +# Trim line continuation slash: cut -d' ' -f1 "