forked from OpenSmalltalk/opensmalltalk-vm
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 " |