Skip to content

Commit

Permalink
Merge pull request StackExchange#120 from ConnorAtherton/add-manual-i…
Browse files Browse the repository at this point in the history
…nstall-steps

Add make rule for symlinking and removing /bin files
  • Loading branch information
Tom Limoncelli committed Nov 1, 2015
2 parents b11c918 + d83b2fb commit 384f04a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@ lock-rpm:
unlock-rpm:
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
#
Expand Down Expand Up @@ -84,7 +97,7 @@ packages-macports: tools/mk_macports.vcs_blackbox.txt
mkdir -p $(DESTDIR)/bin
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:
mkdir -p /usr/local/stow/blackbox/bin
cp bin/* /usr/local/stow/blackbox/bin
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 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 manual way*: `make manual-install` to install. `make manual-uninstall` to uninstall.
* *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.

Expand Down

0 comments on commit 384f04a

Please sign in to comment.