Ignore:
Timestamp:
10/22/13 11:17:41 (23 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, enter/10, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2, releng/10.2, stable/10
Children:
f5a7226
Parents:
f09d1ce
Message:

For PBIs on 10, add a "pbi <cmd>" and "app <cmd>" alias

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pbi-manager10/pbi-manager

    r5aee13d r39079340  
    76427642} 
    76437643 
     7644app_init() 
     7645{ 
     7646  cmd=$1 
     7647 
     7648  # Alias install -> add 
     7649  if [ "$cmd" = "install" ] ; then cmd="add" ; fi 
     7650 
     7651  which -s "pbi_${cmd}"  
     7652  if [ $? -ne 0 ] ; then usage_app; fi 
     7653 
     7654  shift 
     7655  pbi_${cmd} $* 
     7656  exit $? 
     7657} 
     7658 
     7659usage_app() 
     7660{ 
     7661   cat <<EOF 
     7662usage: `basename $0` <subcommand> 
     7663 
     7664Available sub-commands: 
     7665 
     7666  add 
     7667  addrepo 
     7668  autobuild 
     7669  browser 
     7670  create 
     7671  deleterepo 
     7672  delete 
     7673  icon 
     7674  indextool 
     7675  info 
     7676  install 
     7677  listrepo 
     7678  makeport 
     7679  makepatch 
     7680  makerepo 
     7681  metatool 
     7682  patch 
     7683  update   
     7684 
     7685EOF 
     7686   exit 1 
     7687} 
     7688 
    76447689# Source our shared PCBSD functions 
    76457690. /usr/local/share/pcbsd/scripts/functions.sh 
     
    76777722   pbi_update_hashdir) pbi_update_hashdir_init "$@" ;; 
    76787723   pbi-crashhandler) pbi_crash_init "$@" ;; 
     7724   app) app_init "$@" ;; 
     7725   pbi) app_init "$@" ;; 
    76797726   pbid) pbid_init "$@" ;; 
    76807727   *) echo "Error: Called with invalid basename!" ; exit_trap ;; 
Note: See TracChangeset for help on using the changeset viewer.