about summary refs log tree commit diff
path: root/Completion/Rpm/_rpm_build
blob: 1702e5d8ea0207531f985022cf7d7e2e41d9ac57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#autoload

local args

if [[ "$1" = -b ]]; then
  args='*:RPM package:_rpm_package'
else
  args='*:tar file:_files -g \*.\(\#i\)tar\(.\*\|\)'
fi

_rpm_arguments \
  --{short-circuit,clean,rmsource,sign,test} \
  '--buildroot:build root directory:_files -/' \
  '--buildarch:architecture for which to build:' \
  '--buildos:ositecture for which to build:' \
  '--timecheck:time check (seconds):' "$args"