streams/util/genhook

8 lines
247 B
Text
Raw Permalink Normal View History

2021-03-31 05:06:12 +00:00
/bin/rm hook1
grep -r Hook::call --exclude-dir=.git --exclude-dir=cache --exclude-dir=logs --exclude-dir=store * > hook1
2021-03-31 05:06:12 +00:00
awk -F\' '{ print $2};' < hook1 > hook2
sed -i '/^\s*$/d' hook2
sort < hook2 | uniq > hooklist.mc
/bin/rm hook1
/bin/rm hook2