File: setup

package info (click to toggle)
libdevel-cover-perl 1.51-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,036 kB
  • sloc: perl: 10,861; sh: 687; makefile: 7
file content (18 lines) | stat: -rw-r--r-- 455 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# . ./utils/setup

# shellcheck disable=SC3037
tidy() { echo -n "$1" | perl -naF: -e'print join ":", grep !$s{$_}++&&-e, @F'; }
dc_home=$PWD
PATH=$(tidy "$dc_home/utils:$PATH")
export PATH

if [ -n "$ZSH_VERSION" ]; then
    # shellcheck disable=SC2207,SC3030
  _dc() { reply=($(utils/dc options)); }
    # shellcheck disable=SC2207,SC3030,SC2034
  _build() { reply=($(docker/BUILD options)); }
  compctl -K _dc dc
  compctl -K _build BUILD
fi