Changeset 39079340


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

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

Location:
src-sh
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pbi-manager10/install.sh

    r9b2c4e1 r39079340  
    4343ln -f ${LB}/sbin/pbi_create ${LB}/sbin/pbid 
    4444ln -f ${LB}/sbin/pbi_create ${LB}/sbin/pbi-crashhandler 
     45ln -f ${LB}/sbin/pbi_create ${LB}/sbin/app 
     46ln -f ${LB}/sbin/pbi_create ${LB}/sbin/pbi 
    4547 
    4648# Set the new PREFIX / LOCALBASE 
  • 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 ;; 
  • src-sh/port-files/Makefile

    r9b2c4e1 r39079340  
    3838                share/pbi-manager/.ldconfig \ 
    3939                share/pbi-manager/.mount_nullfs \ 
    40                 etc/man.d/pbi.conf 
     40                etc/man.d/pbi.conf \ 
     41                sbin/app \ 
     42                sbin/pbi 
    4143.endif 
    4244 
Note: See TracChangeset for help on using the changeset viewer.