https://github.com/sharat87/n-nake
A super bare bones make-replacement, intended to be used with bash.
https://github.com/sharat87/n-nake
Last synced: 7 months ago
JSON representation
A super bare bones make-replacement, intended to be used with bash.
- Host: GitHub
- URL: https://github.com/sharat87/n-nake
- Owner: sharat87
- Created: 2012-03-08T08:02:11.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-03-08T09:25:10.000Z (over 13 years ago)
- Last Synced: 2025-02-08T20:26:49.331Z (8 months ago)
- Language: Shell
- Homepage:
- Size: 93.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About
This is kinda like `make`, for `bash`, but not even remotely close in
capability.# Usage
See what you can do:
$ cat nakefile
default-task () {
echo Running default task
}deploy () {
echo -n uploading to my-server...
tar --create --bzip2 * \
| ssh my-server "cd /htdocs;
rm -rf ./*;
tar --extract --bzip2;"
echo done
}and,
$ n -l
default-task
deploy$ n
Running default task$ n deploy
uploading to my-server...doneOther *features*:
- All arguments after the task name are simply passed on to the task function.
- Task auto-completion is available for bash and zsh.# Installation
Place the `n.sh` file somewhere accessible and *source* it in your
`.bashrc`/`.zshrc`.$ curl https://bitbucket.org/sharat87/n-nake/raw/tip/n.sh > ~/.n.sh
$ echo '. ~/.n.sh' >> ~/.bashrc`n` should be ready to use now.
# Contributions
Even as basic as `n` is currently today, it has proven to be very useful to me.
Any suggestions/ideas/feedback welcome. Please open an issue on bitbucket (or
github) or send a pull request, if the change is simple enough.Code is hosted on both [bitbucket](https://bitbucket.org/sharat87/n-nake) and
[github](https://github.com/sharat87/n-nake).# License
[MIT License](http://mit.sharats.me)