slweb

Једноставни генератор статичких веб страна
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

чување 5365c0c059823a0cdd99b2420f74d5da8cf02b29
родитељ 3735ffb129e08c040752b2c0db860e31bc5aa566
Аутор: Страхиња Радић <contact@strahinja.org>
Датум:   Wed, 30 Dec 2020 19:59:46 +0100

Changed installation scripts, added .heading-link around links in incdir

Signed-off-by: Страхиња Радић <contact@strahinja.org>

Diffstat:
Mindex.html | 2+-
Minstall.do | 9++++++---
Mslweb.1.in | 2+-
Mslweb.c | 4+++-
Muninstall.do | 8+++++---
измењених датотека: 5, додавања: 16(+), брисања: 9(-)

diff --git a/index.html b/index.html @@ -127,7 +127,7 @@ this program. If not, see &lt;<a href="https://www.gnu.org/licenses">https://www <div id="git-log"> Previous commit: -index.slw 0503305 2020-12-30 14:19:02 +0100 (Страхиња Радић) (HEAD -> master, tag: v0.3.1-beta, origin/master, origin/HEAD) +index.slw 3735ffb 2020-12-30 15:18:02 +0100 (Страхиња Радић) (HEAD -> master, origin/master, origin/HEAD) </div><!--git-log--> diff --git a/install.do b/install.do @@ -1,7 +1,10 @@ redo-ifchange all -BINDIR=/usr/local/bin -MANDIR=/usr/local/share/man/man1 -install -d $BINDIR $MANDIR +PREFIX=/usr/local +BINDIR=$PREFIX/bin +DOCDIR=$PREFIX/share/doc/slweb +MANDIR=$PREFIX/share/man/man1 +install -d $BINDIR $DOCDIR $MANDIR install -m 0755 slweb $BINDIR +install -m 0644 slweb.pdf $DOCDIR install -m 0644 slweb.1.gz $MANDIR diff --git a/slweb.1.in b/slweb.1.in @@ -210,7 +210,7 @@ the directive. For every subdirectory of the directory containing the input file, up to .I num (if present) or 5 (if omitted) total subdirectories, a \fC<li>\fR -tag will be inserted into the \fC<ul class="dir">\fR tag. +tag will be inserted into the \fCul\fR tag. . .IP 3. 4 A \fC<details>\fR tag will be inserted into each \fC<li>\fR tag. diff --git a/slweb.c b/slweb.c @@ -412,7 +412,9 @@ process_incdir_subdir(const char* subdirname, FILE* output, BOOL details_open, day = strtok(NULL, "T"); if (day) { - fprintf(output, "<a href=\"%s/%s.html\">%s.%s.%s</a>", + fprintf(output, "<div class=\"heading-link\">\n" + "<a href=\"%s/%s.html\">%s.%s.%s</a>\n" + "</div>", abs_subdirname, filename_noext ? filename_noext : (*pnamelist)->d_name, diff --git a/uninstall.do b/uninstall.do @@ -1,5 +1,7 @@ redo-always -BINDIR=/usr/local/bin -MANDIR=/usr/local/share/man/man1 -rm -f $BINDIR/slweb $MANDIR/slweb.1.gz +PREFIX=/usr/local +BINDIR=$PREFIX/bin +DOCDIR=$PREFIX/share/doc/slweb +MANDIR=$PREFIX/share/man/man1 +rm -f $BINDIR/slweb $DOCDIR/slweb.pdf $MANDIR/slweb.1.gz