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 |
14
Makefile
14
Makefile
|
@ -1,13 +1,12 @@
|
||||||
BIN = srohtml
|
BIN = srohtml
|
||||||
VERSION = 0.1
|
VERSION = 0.2
|
||||||
|
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
|
||||||
CPPFLAGS_SROHTML = -DVERSION=\"${VERSION}\" ${CPPFLAGS}
|
CPPFLAGS_SROHTML = -DBIN=\"${BIN}\" -DVERSION=\"${VERSION}\" ${CPPFLAGS}
|
||||||
# debug
|
OPTIMIZATION = -Os
|
||||||
#CFLAGS_SROHTML = -ggdb -ansi -pedantic ${CPPFLAGS_SROHTML} ${CLAGS}
|
CFLAGS_SROHTML = ${OPTIMIZATION} -ansi -pedantic ${CPPFLAGS_SROHTML} ${CFLAGS}
|
||||||
CFLAGS_SROHTML = -Os -ansi -pedantic ${CPPFLAGS_SROHTML} ${CFLAGS}
|
LDFLAGS_SROHTML = ${LDFLAGS}
|
||||||
LDFLAGS_SROHTML = ${LDFLAGS}
|
|
||||||
|
|
||||||
SRC = ${BIN}.c
|
SRC = ${BIN}.c
|
||||||
OBJ = ${SRC:.c=.o}
|
OBJ = ${SRC:.c=.o}
|
||||||
|
@ -29,6 +28,9 @@ ${BIN}: ${OBJ}
|
||||||
clean:
|
clean:
|
||||||
rm -f ${BIN} ${BIN}-${VERSION}.tar.gz *.o
|
rm -f ${BIN} ${BIN}-${VERSION}.tar.gz *.o
|
||||||
|
|
||||||
|
debug:
|
||||||
|
@make OPTIMIZATION=-ggdb
|
||||||
|
|
||||||
dist: clean
|
dist: clean
|
||||||
mkdir ${BIN}-${VERSION}
|
mkdir ${BIN}-${VERSION}
|
||||||
cp -R ${SRC} LICENSE Makefile README ${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
|
The idea of updating a website with a roff-like syntax comes from my
|
||||||
preference for the groff typesetting system, obviously, and because 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
|
With the right macro package you could ask groff to make a PDF out of my
|
||||||
web page sources.
|
web page sources.
|
||||||
|
|
||||||
Even if GNU roff outputs in HTML as well, I wasn't happy with the
|
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
|
results and the lack of HTML 5 support. Besides, I wanted to hard code a
|
||||||
some tags of the very small HTML subset I use, that are absent when
|
bit of CSS for the the very small HTML subset I use, a feature absent
|
||||||
exporting hypertexts in groff.
|
when exporting hypertexts in groff.
|
||||||
|
|
||||||
Moreover I'm thinking of mirroring my site to Gopherspace. I could
|
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
|
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
|
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!
|
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
|
This program is specially tailored for my use case, you might find
|
||||||
hard coded and specific behaviour you don't agree with.
|
specific behaviour you don't agree with.
|
||||||
|
|
||||||
|
|
||||||
[1] http://choice.tiepi.it/~matteobin/
|
[1] http://choice.tiepi.it/~matteobin/
|
||||||
|
|
Loading…
Reference in New Issue