Merge pull request #120 from ConnorAtherton/add-manual-install-steps
Add make rule for symlinking and removing /bin files
This commit is contained in:
15
Makefile
15
Makefile
@@ -45,6 +45,19 @@ lock-rpm:
|
|||||||
unlock-rpm:
|
unlock-rpm:
|
||||||
sudo yum versionlock clear
|
sudo yum versionlock clear
|
||||||
|
|
||||||
|
#
|
||||||
|
# Manual install
|
||||||
|
#
|
||||||
|
manual-install:
|
||||||
|
@echo 'Symlinking files from ./bin to /usr/local/bin'
|
||||||
|
@cd bin && for f in `find . -type f -iname "*" ! -iname "Makefile"`; do ln -fs `pwd`/$$f /usr/local/bin/$$f; done
|
||||||
|
@echo 'Done.'
|
||||||
|
|
||||||
|
manual-uninstall:
|
||||||
|
@echo 'Removing blackbox files from /usr/local/bin'
|
||||||
|
@cd bin && for f in `find . -type f -iname "*" ! -iname "Makefile"`; do rm /usr/local/bin/$$f; done
|
||||||
|
@echo 'Done.'
|
||||||
|
|
||||||
#
|
#
|
||||||
# DEB builds
|
# DEB builds
|
||||||
#
|
#
|
||||||
@@ -84,7 +97,7 @@ packages-macports: tools/mk_macports.vcs_blackbox.txt
|
|||||||
mkdir -p $(DESTDIR)/bin
|
mkdir -p $(DESTDIR)/bin
|
||||||
cd tools && ./mk_macports mk_macports.vcs_blackbox.txt
|
cd tools && ./mk_macports mk_macports.vcs_blackbox.txt
|
||||||
|
|
||||||
# stow is a pretty easy way to manage simple local installs on GNU systems
|
# stow is a pretty easy way to manage simple local installs on GNU systems
|
||||||
install-stow:
|
install-stow:
|
||||||
mkdir -p /usr/local/stow/blackbox/bin
|
mkdir -p /usr/local/stow/blackbox/bin
|
||||||
cp bin/* /usr/local/stow/blackbox/bin
|
cp bin/* /usr/local/stow/blackbox/bin
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ Installation Instructions:
|
|||||||
* *The RPM way*: Check out the repo and make an RPM via `make packages-rpm`; now you can distribute the RPM via local methods.
|
* *The RPM way*: Check out the repo and make an RPM via `make packages-rpm`; now you can distribute the RPM via local methods.
|
||||||
* *The Debian/Ubuntu way*: Check out the repo and install [fpm](https://github.com/jordansissel/fpm). Now you can make a DEB `make packages-deb` that can be distributed via local methods.
|
* *The Debian/Ubuntu way*: Check out the repo and install [fpm](https://github.com/jordansissel/fpm). Now you can make a DEB `make packages-deb` that can be distributed via local methods.
|
||||||
* *The hard way*: Copy all the files in "bin" to your "bin".
|
* *The hard way*: Copy all the files in "bin" to your "bin".
|
||||||
|
* *The manual way*: `make manual-install` to install. `make manual-uninstall` to uninstall.
|
||||||
* *The Antigen Way*: Add `antigen bundle StackExchange/blackbox` to your .zshrc
|
* *The Antigen Way*: Add `antigen bundle StackExchange/blackbox` to your .zshrc
|
||||||
* *The Zgen Way*: Add `zgen load StackExchange/blackbox` to your .zshrc where you're loading your other plugins.
|
* *The Zgen Way*: Add `zgen load StackExchange/blackbox` to your .zshrc where you're loading your other plugins.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user