This is an old revision of the document!


Find dependencies

Some ports' Makefiles contain line-continuations making it non-trivial to find dependencies etc.

To counter this, use ` perl -pe 's/\\\n/ /' {} \; ` to remove line-continuations.

Finding in (all) files is a lot easier with textproc/the_silver_searcher. To find all relevant files containing references to mysql as a first filter use ` ag –ignore 'pkg-*' –ignore 'distinfo' –ignore 'patch-*' mysql ` Silver Searcher will perform a case-insensitive search by default

To find all files requiring MySQL, you could use something like ` for file in ag --ignore 'pkg-*' --ignore 'distinfo' --ignore 'patch-*' -l mysql ; do perl -pe 's/\\\n/ /' $file \ | grep USE | sed -ne “/mysql/s|^|${file}:|p” done `

  • bernardspil/portingnotes.1448136017.txt.gz
  • Last modified: 2015/11/21 20:00
  • by BernardSpil