squidpm

the squid package manager
git clone git://squid-tech.com/squidpm.git
Log | Files | Refs | README | LICENSE

commit 4fcf4ca657a727bc32e96120e66768fde1caf844
parent 1f7f2552dadd1b711644a48c06cd26ecbc27172c
Author: Josh Moore <jxm5210@rit.edu>
Date:   Tue, 14 Jan 2020 16:59:12 -0500

Really add special package: all

Diffstat:
Apackages/all | 39+++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+), 0 deletions(-)

diff --git a/packages/all b/packages/all @@ -0,0 +1,39 @@ +#!/bin/sh + +# This is a special package that performs the specified operation +# on all available packages. + +# the name of this package +me=$(basename "$0") +# the directory of this package +mydir=$(dirname "$0") + +if [ $1 == "install" ]; then + # installation behavior for this package + # make, make install, etc + echo "Installing all squidpm packages..." + for f in $mydir/* + do + if [ $(basename $f) != $me ]; then + squidpm install $(basename $f) + fi + done +elif [ $1 == "uninstall" ]; then + # uninstallation behavior for this package + + echo "Uninstalling all installed packages..." + for f in $mydir/../repos/* + do + if [ $(basename $f) != $me ]; then + squidpm uninstall $(basename $f) + fi + done +elif [ $1 == "update" ]; then + # update behavior for this package + for f in $mydir/../repos/* + do + if [ $(basename $f) != $me ]; then + squidpm update $(basename $f) + fi + done +fi