squidpm

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

commit e5412517e6c8527baa190ff99abc39e80a46351d
parent e2b6093f8e1b504947904fb6a4a4b612f9fd3691
Author: Josh Moore <jxm5210@rit.edu>
Date:   Thu, 16 Jan 2020 15:17:39 -0500

Add package: godwordshappy

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

diff --git a/packages/godwordshappy b/packages/godwordshappy @@ -0,0 +1,29 @@ +# set this to the public git url of the package +GITURL=https://github.com/joshiemoore/godwordshappy.git + +# the name of this package +me=$(basename "$0") +mydir=$(dirname "$0") + +if [ $1 = "install" ]; then + mkdir -p $mydir/../repos/$me + cd $mydir/../repos/$me + + # clone the repo + git clone $GITURL . + + # installation behavior for this package + sudo make install +elif [ $1 = "uninstall" ]; then + cd $mydir/../repos/$me + # uninstallation behavior for this package + + sudo make uninstall + + cd .. + rm -rf $me +elif [ $1 = "update" ]; then + cd $mydir/../repos/$me + # update behavior for this package + git pull +fi