Skip to content

Commit

Permalink
Merge pull request #337 from bencoman/pluginReport
Browse files Browse the repository at this point in the history
Add pluginreport script

[ci skip]
  • Loading branch information
akgrant43 committed Jan 2, 2019
2 parents 7b4dedb + ac69399 commit aebf4dc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions 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 "

0 comments on commit aebf4dc

Please sign in to comment.