sbotools2

Maintenance fork of the original sbotools version 2
git clone git://git.server.ky/slackcoder/sbotools2
Log | Files | Refs | README

_sboupgrade (1270B)


      1 #compdef sboupgrade
      2 
      3 # sbotools: https://pink-mist.github.io/sbotools/
      4 
      5 # get a list of available upgrades
      6 sboupdates=( ${(uf)"$(perl -MSBO::Lib::Pkgs=get_available_updates -E 'say $_->{name} for @{ get_available_updates; }')"} )
      7 
      8 _arguments -s -C \
      9 	   - info \
     10 	   '(-)'{-h,--help}'[Show help]:' \
     11 	   '(-)'{-v,--version}'[Show version information.]:' \
     12 	   - commands \
     13 	   '(${sboupdates})--all[Upgrade all from sbocheck.]' \
     14 	   '(-c --noclean)'{-c,--noclean}'[If TRUE, then do not clean working directories after build.]:clean work dirs?:((TRUE\:"Clean works directories" FALSE\:"Keep work directories"))' \
     15 	   '(-d --distclean)'{-d,--distclean}'[If TRUE, then remove source code after building.]:clean source?:((TRUE\:"Remove source" FALSE\:"Keep source"))' \
     16 	   '(-j --jobs)'{-j,--jobs}'[Number fed to -j# for make.]:number of jobs (make):()' \
     17 	   '(-r --nointeractive)'{-r,--nointeractive}'[Skip README.]' \
     18 	   '(-f --force)'{-f,--force}'[Force an upgrade (ignore version).]' \
     19 	   '(-z --force-reqs)'{-z,--force-reqs}'[Force update of requirements (use with -f).]' \
     20 	   '(-i --noinstall)'{-i,--noinstall}'[Build package but do not install.]' \
     21 	   '(-)*:SlackBuild:(${sboupdates:|words})' \
     22     && return 0
     23 
     24 return 1
     25 
     26 # Local Variables:
     27 # mode: sh
     28 # End: