forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a script to automatically generate the packages.json group file
- Loading branch information
Showing
1 changed file
with
15 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,15 @@ | ||
#! /bin/bash | ||
|
||
MACROS="DEFINE_FWK_MODULE DEFINE_FWK_INPUT_SOURCE DEFINE_FWK_VECTOR_INPUT_SOURCE" | ||
REGEX="\($(echo $MACROS | sed -e's/ \+/\\|/g')\)" | ||
|
||
echo '{' | ||
cd $CMSSW_RELEASE_BASE/src | ||
{ | ||
grep -r "^ *$REGEX" */*/plugins */*/src */*/interface | sed -e"s#\(\w\+\)/\(\w\+\)/.*: *$REGEX *( *\(.*::\)\?\(\w\+\) *).*# \"\5|\": \"\1|\2\",#" | ||
echo ' "PathStatusInserter|": "FWCore|Framework",' | ||
echo ' "EndPathStatusInserter|": "FWCore|Framework",' | ||
echo ' "TriggerResultInserter|": "FWCore|Framework",' | ||
} | sort -u | ||
echo ' "other|other": "other|other"' | ||
echo '}' |