Skip to content

Commit

Permalink
Add pluginreport script
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Coman authored and Ben Coman committed Jan 2, 2019
1 parent 7b4dedb commit 9250012
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/pluginReport
@@ -0,0 +1,12 @@
#!/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

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 9250012

Please sign in to comment.