Permalink
Browse files

Add the bulk PBI approval script to the new pbi/approvetools director…

…y, and also clean up the pbi-meta-10 file. It is not filled with the new 10 PBI's info yet, it just has the old info cleaned out.
  • Loading branch information...
1 parent 370a6c3 commit 4ecb6ee65d54a8c39a54e5799bf3b9a8842deb41 Ken Moore committed Nov 12, 2013
Showing with 35 additions and 1,196 deletions.
  1. +35 −0 approvetools/installPBI.sh
  2. +0 −1,196 update/pbi-meta-10
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+for i in $@
+do
+ #Check that it is a PBI
+ if [ `basename ${i} .pbi` == `basename ${i}` ]; then
+ continue
+ fi
+ #Load the PBI information
+ NEEDROOT=`pbi_add -i ${i} | grep "RootInstall: YES"`
+ PBIPATH=`pbi_add -i ${i} | grep "Prefix:" | cut -d : -f 2`
+ #Install the PBI
+ if [ -n "${NEEDROOT}" ] && [ -e ${PBIPATH} ]; then
+ echo "Re-install ${i} as ROOT"
+ sudo pbi_add -f ${i}
+ elif [ -n "${NEEDROOT}" ]; then
+ echo "Install ${i} as ROOT"
+ sudo pbi_add ${i}
+ elif [ -e ${PBIPATH} ]; then
+ echo "Re-install ${i}"
+ pbi_add -f ${i}
+ else
+ echo "Install ${i}"
+ pbi_add ${i}
+ fi
+ #Check for success
+ if [ -e ${PBIPATH} ]; then
+ echo "--Success--"
+ rm ${i}
+ else
+ echo "--FAILURE--"
+ fi
+ echo ""
+done
+
Oops, something went wrong.

0 comments on commit 4ecb6ee

Please sign in to comment.