add Makefile and update some links on README

This commit is contained in:
Ben Harris 2018-07-21 20:29:50 -04:00
parent f4f293e3d9
commit 70d43d37d5
Signed by: ben
GPG Key ID: 4E0AF802FFF7960C
2 changed files with 28 additions and 7 deletions

13
Makefile Normal file
View File

@ -0,0 +1,13 @@
BINDIR ?= /usr/local/bin
install:
@echo Installing the executable to $(BINDIR)
@mkdir -p $(BINDIR)
@cp -f bb.sh $(BINDIR)/bb
@chmod 755 $(BINDIR)/bb
uninstall:
@echo Removing the executable from $(BINDIR)
@rm -f $(BINDIR)/bb
.PHONY: install uninstall

View File

@ -1,6 +1,18 @@
bashblog bashblog
======== ========
This is the source for the customized bashblog used on [tilde.team](https://tilde.team). We have a [wiki page](https://tilde.team/wiki/?page=tildeblogs) with more details on our specific setup.
Note for ~team admins:
```bash
sudo make install
```
to update the script in /usr/local/bin
original README from [github](https://github.com/cfenollosa/bashblog) here:
---
A single Bash script to create blogs. A single Bash script to create blogs.
I created it because I wanted a very, very simple way to post entries to a blog by using a public folder on my server, without any special requirements and dependencies. Works on GNU/Linux, OSX and BSD. I created it because I wanted a very, very simple way to post entries to a blog by using a public folder on my server, without any special requirements and dependencies. Works on GNU/Linux, OSX and BSD.
@ -19,11 +31,7 @@ Check out [other bashblog users](https://www.google.com/search?q=%22Generated+wi
Usage Usage
----- -----
Download the code and copy bb.sh into a public folder (for example, `$HOME/public_html/blog`) and run `bb` will show the available commands.
bb
This will show the available commands. If the file is not executable, type `chmod +x bb.sh` and retry.
**Before creating your first post, you may want to configure the blog settings (title, author, etc). **Before creating your first post, you may want to configure the blog settings (title, author, etc).
Read the Configuration section below for more information** Read the Configuration section below for more information**
@ -32,13 +40,13 @@ To create your first post, just run:
bb post bb post
It will try to use Markdown, if installed. To force HTML: It will use Markdown. To force HTML:
bb post -html bb post -html
The script will handle the rest. The script will handle the rest.
When you're done, access the public URL for that folder (e.g. `https://tilde.team/~username/blog`) When you're done, access the public URL for that folder (`https://tilde.team/~username/blog`)
and you should see the index file and a new page for that post! and you should see the index file and a new page for that post!