remove kinsis / unused input settings
[distro-setup] / gitslink
1 #!/bin/bash
2
3 source /a/bin/errhandle/errcatch-function
4 source /a/bin/errhandle/bash-trace-function
5 errcatch
6
7 e() { echo "$*"; "$@"; }
8 lnf() { /a/bin/lnf/lnf "$@"; }
9
10 shopt -s nullglob
11 shopt -s extglob
12
13 cd /a/bin
14 # if we didn't have just automated files, we could cleanup
15 # links to not executable files.
16 e rm -rf /a/exe
17
18 # sourcing instead of calling script changes runtime from .47s to .36s
19 source /a/bin/lnf/lnf >/dev/null ||:
20
21 for x in !(unused|unfinished|queue|bash-template|buildscripts|crons|data|examples|log-quiet); do
22 [[ -e $x/.git ]] || continue
23 for y in $x/*; do
24 if [[ -x $y && ! -d $y ]]; then
25 lnf -v /a/bin/$y /a/exe
26 fi
27 done
28 done
29
30 for x in *; do
31 if [[ ! -d $x && -x $x ]]; then
32 lnf -v /a/bin/$x /a/exe
33 fi
34 done
35
36 # things we don't want to run in /a, because
37 # they are long running and could get in the way of
38 # btrfs remounting
39 /a/bin/distro-setup/install-my-scripts
40 /a/bin/log-quiet/setup