home
readme
diff
tree
note
docs
git.ws
This is the git repo for this website. It includes the git.awk and the mailto.awk files.
They are very easy to setup if you are using lighttpd or apache.
Git
---------------------------------------
Features:
* Repo list
* Git log
* Automatic README identification
* Diff viewer
* Tree viewer with file viewer
* Displays git notes
* Docs for displaying man pages (Requires mandoc)
Getting Started
Set git.awk to executable and add it to your cgi-bin directory. Create a
/var/git folder. This is where your git repo's will live. Git.awk doesn't
handle any git related items like managing the commits. Git.awk is just a
http viewer.
Once you have moved a git repo into /var/git open the cgi-bin script in a browser
and you will see your repo listed on the home page! Everything else should
be automatic except the docs. To create a docs page you need to make a docs
directory in the repo. Git.awk will check that folder for any man pages and if found
it will convert them to ascii using manpage and server them.
CGI
--------------------------------------
Features
* Easily launch version controlled API's and update them with git push
Same setup as git.awk. CGI.awk follows the same URL encoding as git.awk so if you need
the url for the script just chnage out the git.awk for cgi.awk.
CGI.awk extracts the repo at a specfic commit to a temp folder located at /tmp/{name}/{commit}.
Once the commit is extracted or if it already existed the script will execute the file
specified with the path query parameter passing any other query parameter as a path variable to
the script.
Mailto
--------------------------------------
All emails will be served out of /var/mailto