Skip to content

Commit

Permalink
hg -> git
Browse files Browse the repository at this point in the history
  • Loading branch information
wlangstroth committed Apr 6, 2012
0 parents commit 24316f0
Show file tree
Hide file tree
Showing 8 changed files with 902 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
@@ -0,0 +1,15 @@
DESTDIR?=
PREFIX?=/usr/local
P=${DESTDIR}/${PREFIX}

all: sw.conf

sw.conf:
cp sw.conf.def sw.conf

install:
mkdir -p ${P}/bin
sed -e "s,/usr/bin/awk,`./whereis awk`,g" md2html.awk > ${P}/bin/md2html.awk
chmod +x ${P}/bin/md2html.awk
cp -f sw ${P}/bin/sw
chmod +x ${P}/bin/sw
40 changes: 40 additions & 0 deletions README
@@ -0,0 +1,40 @@
sw - suckless webframework
==========================
sw is a minimal and sane web framework.

Installation
------------
Run:
make && make install PREFIX=/usr/local

Configuration
-------------
Copy sw.conf and style.css to your working directory, and edit them to fit your needs.

Static web generation
---------------------
Run from your working directory:
sw /path/to/site

Where 'site' is the folder where your website is located.
The static version of the website is created under 'site.static'.

Automatic generation+upload
---------------------------
The whole process can be automatized if you create a Makefile like this in your working directory:

$ cat Makefile
all:
sw /path/to/site
rsync -avz site.static/ foo.org:/path/to/wwwroot/
clean:
rm -rf site.static

Author
------
Nibble <develsec.org>

Contributors
------------
pancake <nopcode.org>
Andrew Antle

0 comments on commit 24316f0

Please sign in to comment.