File: dev-search-dirs.sh

package info (click to toggle)
notion 4.0.2%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,676 kB
  • sloc: ansic: 47,508; sh: 2,096; makefile: 603; perl: 270
file content (21 lines) | stat: -rwxr-xr-x 447 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

this_rel=$(dirname ${BASH_SOURCE[0]})
rel_root=$this_rel/..

notion_root=$(realpath $rel_root)

src_search_dirs() {
    prefix='-searchdir '
    ls -d \
       $notion_root/.notion \
       $notion_root/de \
       $notion_root/etc \
       $notion_root/ioncore \
       $notion_root/contrib/scripts \
       $notion_root/mod_statusbar/ion-statusd \
       $notion_root/mod_* \
        | sed "s/^/$prefix/" | xargs
}

src_search_dirs