Skip to content

Commit

Permalink
Add a script to automatically generate the packages.json group file
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard committed Mar 4, 2021
1 parent 44ab7f6 commit de517aa
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/make_packages_json.sh
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 '}'

0 comments on commit de517aa

Please sign in to comment.