squidpm

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

commit f68257d1081f8e053b11bc842aca6ef37ffcc4a4
parent 42ee71cd627119b0843b0308a4178f706d671d24
Author: Josh Moore <jxm5210@rit.edu>
Date:   Wed, 15 Jan 2020 19:33:34 -0500

Fix package directory stuff

Diffstat:
Mpackages/direwolf | 10++++++----
Mpackages/dwm | 10++++++----
Mpackages/example | 10++++++----
Mpackages/farbfeld | 10++++++----
Mpackages/sent | 10++++++----
Mpackages/slock | 10++++++----
Mpackages/st | 9+++++----
7 files changed, 41 insertions(+), 28 deletions(-)

diff --git a/packages/direwolf b/packages/direwolf @@ -7,11 +7,11 @@ GITURL=https://github.com/wb2osz/direwolf.git me=$(basename "$0") mydir=$(dirname "$0") -# create a repo dir for this package if it doesn't exist -mkdir -p $mydir/../repos/$me -cd $mydir/../repos/$me - if [ $1 = "install" ]; then + # create a repo dir for this package if it doesn't exist + mkdir -p $mydir/../repos/$me + cd $mydir/../repos/$me + # clone the repo git clone $GITURL . @@ -21,6 +21,7 @@ if [ $1 = "install" ]; then make install-conf echo "Installed direwolf." elif [ $1 = "uninstall" ]; then + cd $mydir/../repos/$me # uninstallation behavior for this package make clean @@ -36,6 +37,7 @@ elif [ $1 = "uninstall" ]; then echo "Uninstalled direwolf." elif [ $1 = "update" ]; then + cd $mydir/../repos/$me # update behavior for this package git pull make diff --git a/packages/dwm b/packages/dwm @@ -7,11 +7,11 @@ GITURL=https://git.suckless.org/dwm me=$(basename "$0") mydir=$(dirname "$0") -# create a repo dir for this package if it doesn't exist -mkdir -p $mydir/../repos/$me -cd $mydir/../repos/$me - if [ $1 = "install" ]; then + # create a repo dir for this package if it doesn't exist + mkdir -p $mydir/../repos/$me + cd $mydir/../repos/$me + # clone the repo git clone $GITURL . @@ -20,6 +20,7 @@ if [ $1 = "install" ]; then echo "Note that additional config may be required to run dwm." echo "See https://dwm.suckless.org/tutorial/" elif [ $1 = "uninstall" ]; then + cd $mydir/../repos/$me # uninstallation behavior for this package sudo make clean uninstall @@ -27,6 +28,7 @@ elif [ $1 = "uninstall" ]; then cd .. rm -rf $me elif [ $1 = "update" ]; then + cd $mydir/../repos/$me # update behavior for this package git pull sudo make clean install diff --git a/packages/example b/packages/example @@ -24,11 +24,11 @@ GITURL= me=$(basename "$0") mydir=$(dirname "$0") -# create a repo dir for this package if it doesn't exist -mkdir -p $mydir/../repos/$me -cd $mydir/../repos/$me - if [ $1 = "install" ]; then + # create a repo dir for this package if it doesn't exist + mkdir -p $mydir/../repos/$me + cd $mydir/../repos/$me + # clone the repo #git clone $GITURL . @@ -36,6 +36,7 @@ if [ $1 = "install" ]; then # make, make install, etc echo "Installed example package!" elif [ $1 = "uninstall" ]; then + cd $mydir/../repos/$me # uninstallation behavior for this package cd .. @@ -43,6 +44,7 @@ elif [ $1 = "uninstall" ]; then echo "Uninstalled example package!" elif [ $1 = "update" ]; then + cd $mydir/../repos/$me # update behavior for this package echo "Updated example package!" fi diff --git a/packages/farbfeld b/packages/farbfeld @@ -7,17 +7,18 @@ GITURL=https://git.suckless.org/farbfeld me=$(basename "$0") mydir=$(dirname "$0") -# create a repo dir for this package if it doesn't exist -mkdir -p $mydir/../repos/$me -cd $mydir/../repos/$me - if [ $1 = "install" ]; then + # create a repo dir for this package if it doesn't exist + mkdir -p $mydir/../repos/$me + cd $mydir/../repos/$me + # clone the repo git clone $GITURL . # installation behavior for this package sudo make clean install elif [ $1 = "uninstall" ]; then + cd $mydir/../repos/$me # uninstallation behavior for this package sudo make clean uninstall @@ -25,6 +26,7 @@ elif [ $1 = "uninstall" ]; then cd .. rm -rf $me elif [ $1 = "update" ]; then + cd $mydir/../repos/$me # update behavior for this package git pull sudo make clean install diff --git a/packages/sent b/packages/sent @@ -7,11 +7,11 @@ GITURL=https://git.suckless.org/sent me=$(basename "$0") mydir=$(dirname "$0") -# create a repo dir for this package if it doesn't exist -mkdir -p $mydir/../repos/$me -cd $mydir/../repos/$me - if [ $1 = "install" ]; then + # create a repo dir for this package if it doesn't exist + mkdir -p $mydir/../repos/$me + cd $mydir/../repos/$me + # check dependencies squidpm check farbfeld if [ $? -eq 0 ]; then @@ -24,6 +24,7 @@ if [ $1 = "install" ]; then # installation behavior for this package sudo make clean install elif [ $1 = "uninstall" ]; then + cd $mydir/../repos/$me # uninstallation behavior for this package sudo make clean uninstall @@ -31,6 +32,7 @@ elif [ $1 = "uninstall" ]; then cd .. rm -rf $me elif [ $1 = "update" ]; then + cd $mydir/../repos/$me # update behavior for this package git pull sudo make clean install diff --git a/packages/slock b/packages/slock @@ -7,17 +7,18 @@ GITURL=https://git.suckless.org/slock me=$(basename "$0") mydir=$(dirname "$0") -# create a repo dir for this package if it doesn't exist -mkdir -p $mydir/../repos/$me -cd $mydir/../repos/$me - if [ $1 = "install" ]; then + # create a repo dir for this package if it doesn't exist + mkdir -p $mydir/../repos/$me + cd $mydir/../repos/$me + # clone the repo git clone $GITURL . # installation behavior for this package sudo make clean install elif [ $1 = "uninstall" ]; then + cd $mydir/../repos/$me # uninstallation behavior for this package sudo make clean uninstall @@ -25,6 +26,7 @@ elif [ $1 = "uninstall" ]; then cd .. rm -rf $me elif [ $1 = "update" ]; then + cd $mydir/../repos/$me # update behavior for this package git pull sudo make clean install diff --git a/packages/st b/packages/st @@ -7,17 +7,17 @@ GITURL=https://git.suckless.org/st me=$(basename "$0") mydir=$(dirname "$0") -# create a repo dir for this package if it doesn't exist -mkdir -p $mydir/../repos/$me -cd $mydir/../repos/$me - 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 clean install elif [ $1 = "uninstall" ]; then + cd $mydir/../repos/$me # uninstallation behavior for this package sudo make clean uninstall @@ -25,6 +25,7 @@ elif [ $1 = "uninstall" ]; then cd .. rm -rf $me elif [ $1 = "update" ]; then + cd $mydir/repos/../$me # update behavior for this package git pull sudo make clean install