Compare commits
27 Commits
Author | SHA1 | Date |
---|---|---|
Matteo Bini | e13c6d2caa | |
Matteo Bini | f2d9c56a12 | |
Matteo Bini | 5298a48e41 | |
Matteo Bini | 556d7b6ff8 | |
Matteo Bini | d83e30da19 | |
Matteo Bini | f24e9c7f62 | |
Matteo Bini | e21d6d18e9 | |
Matteo Bini | ca8d6d7161 | |
Matteo Bini | 9b7cfa66ce | |
Matteo Bini | 337061a3f4 | |
Matteo Bini | 3dcf820a24 | |
Matteo Bini | a636fe0a1b | |
Matteo Bini | 0d10bc8b4d | |
Matteo Bini | 465281a163 | |
Matteo Bini | ca9017342b | |
Matteo Bini | f79292d9f3 | |
Matteo Bini | 86de41d87c | |
Matteo Bini | 7a52b2ee33 | |
Matteo Bini | fe87055e6d | |
Matteo Bini | 9b25546e58 | |
Matteo Bini | 31f41d2485 | |
Matteo Bini | e54e680d3e | |
Matteo Bini | 2f25133615 | |
Matteo Bini | f005138672 | |
Matteo Bini | fb1c2b971e | |
Matteo Bini | 2f8c6f9ecb | |
Matteo Bini | 59b588498e |
12
Makefile
12
Makefile
|
@ -1,12 +1,11 @@
|
|||
BIN = srohtml
|
||||
VERSION = 0.1
|
||||
VERSION = 0.2
|
||||
|
||||
PREFIX = /usr/local
|
||||
|
||||
CPPFLAGS_SROHTML = -DVERSION=\"${VERSION}\" ${CPPFLAGS}
|
||||
# debug
|
||||
#CFLAGS_SROHTML = -ggdb -ansi -pedantic ${CPPFLAGS_SROHTML} ${CLAGS}
|
||||
CFLAGS_SROHTML = -Os -ansi -pedantic ${CPPFLAGS_SROHTML} ${CFLAGS}
|
||||
CPPFLAGS_SROHTML = -DBIN=\"${BIN}\" -DVERSION=\"${VERSION}\" ${CPPFLAGS}
|
||||
OPTIMIZATION = -Os
|
||||
CFLAGS_SROHTML = ${OPTIMIZATION} -ansi -pedantic ${CPPFLAGS_SROHTML} ${CFLAGS}
|
||||
LDFLAGS_SROHTML = ${LDFLAGS}
|
||||
|
||||
SRC = ${BIN}.c
|
||||
|
@ -29,6 +28,9 @@ ${BIN}: ${OBJ}
|
|||
clean:
|
||||
rm -f ${BIN} ${BIN}-${VERSION}.tar.gz *.o
|
||||
|
||||
debug:
|
||||
@make OPTIMIZATION=-ggdb
|
||||
|
||||
dist: clean
|
||||
mkdir ${BIN}-${VERSION}
|
||||
cp -R ${SRC} LICENSE Makefile README ${BIN}-${VERSION}
|
||||
|
|
12
README
12
README
|
@ -4,22 +4,22 @@ the suckless philosophy [2].
|
|||
|
||||
The idea of updating a website with a roff-like syntax comes from my
|
||||
preference for the groff typesetting system, obviously, and because my
|
||||
texts are written without discarding the possibility of an hard copy.
|
||||
texts are written without discarding the possibility of a hard copy.
|
||||
With the right macro package you could ask groff to make a PDF out of my
|
||||
web page sources.
|
||||
|
||||
Even if GNU roff outputs in HTML as well, I wasn't happy with the
|
||||
results and the lack of HTML 5 support. Besides, I needed to hard code
|
||||
some tags of the very small HTML subset I use, that are absent when
|
||||
exporting hypertexts in groff.
|
||||
results and the lack of HTML 5 support. Besides, I wanted to hard code a
|
||||
bit of CSS for the the very small HTML subset I use, a feature absent
|
||||
when exporting hypertexts in groff.
|
||||
|
||||
Moreover I'm thinking of mirroring my site to Gopherspace. I could
|
||||
extend this program, or write a new one, to convert my simple roff
|
||||
syntax to a text only version for Gopher. I could use the text only
|
||||
version of my writings for the RSS feed too. So roff for the win!
|
||||
|
||||
This program is specially tailored for my use case, you might find some
|
||||
hard coded and specific behaviour you don't agree with.
|
||||
This program is specially tailored for my use case, you might find
|
||||
specific behaviour you don't agree with.
|
||||
|
||||
|
||||
[1] http://choice.tiepi.it/~matteobin/
|
||||
|
|
Loading…
Reference in New Issue