Commit f4d04652 authored by Lars Kruse's avatar Lars Kruse

added simple script for finding the events that are in use

* many events are not grepped due to linebreaks
parent ccdd117f
#!/bin/sh
set -eu
BASE_DIR=$(cd "$(dirname "$0")"; pwd)
grep -rh _event "$BASE_DIR/../pycam" | \
grep -v " def " | \
grep -v configure_event | \
grep -v expose_event | \
sed 's/.*_event//g' | \
grep '"' | \
cut -f 2 -d '"' | \
grep -E "^[0-9A-Za-z_-]+$" | \
sort | \
uniq -c
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment