From e7a88ec2eba309cbab4c1554c7bc8258ed024b99 Mon Sep 17 00:00:00 2001 From: b Date: Tue, 9 Jan 2024 21:40:52 +0000 Subject: [PATCH] show return link from comment even if there is no content to show --- install.sh | 8 ++++++++ makefile | 3 +++ makefile.1.mak | 3 +++ opomba.1.pl | 14 +++++++------- 4 files changed, 21 insertions(+), 7 deletions(-) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..22a4f9e --- /dev/null +++ b/install.sh @@ -0,0 +1,8 @@ +#!/bin/sh +make clean +make -B TARGET=bsta makefile +make install +make clean +make -B TARGET=again makefile +make install +make clean diff --git a/makefile b/makefile index d2dab1f..7007b12 100644 --- a/makefile +++ b/makefile @@ -153,6 +153,7 @@ timer.js all: $(BIN) setuid exec + makefile: makefile.1.mak $(CONFIGFILE) configure.pl $(CONFIGURE_CMD) < makefile.1.mak > makefile @@ -202,9 +203,11 @@ cp_cron: bsta.cron $(SUDO) $(CP) bsta.cron $(CRON) install: all cp_bin cp_lib cp_www cp_conf cp_cron + clean: $(RM) -f configure.pl $(TO_GENERATE) $(PERL_WRAP_EXEC) $(PERL_WRAP_EXEC:=.c) $(PERL) config/configure.1.pl $(DEFAULT_CONFIGFILE) < makefile.1.mak > makefile PHONY: all clean install setuid exec mktree cp_bin cp_lib cp_www cp_conf cp_cron + diff --git a/makefile.1.mak b/makefile.1.mak index ea0971c..7ff6c93 100644 --- a/makefile.1.mak +++ b/makefile.1.mak @@ -153,6 +153,7 @@ timer.js all: $(BIN) setuid exec + makefile: makefile.1.mak $(CONFIGFILE) configure.pl $(CONFIGURE_CMD) < makefile.1.mak > makefile @@ -202,9 +203,11 @@ cp_cron: bsta.cron $(SUDO) $(CP) bsta.cron $(CRON) install: all cp_bin cp_lib cp_www cp_conf cp_cron + clean: $(RM) -f configure.pl $(TO_GENERATE) $(PERL_WRAP_EXEC) $(PERL_WRAP_EXEC:=.c) $(PERL) config/configure.1.pl $(DEFAULT_CONFIGFILE) < makefile.1.mak > makefile PHONY: all clean install setuid exec mktree cp_bin cp_lib cp_www cp_conf cp_cron + diff --git a/opomba.1.pl b/opomba.1.pl index e35aa0b..28b3b49 100644 --- a/opomba.1.pl +++ b/opomba.1.pl @@ -531,9 +531,9 @@ sub output { print ' '."\n"; } + print '
'."\n"; + if ($show_content) { - print '
'."\n"; - print '
'."\n"; print '
'."\n"; unless ($remove) { @@ -582,12 +582,12 @@ sub output { print '
'."\n"; } print '
'."\n"; - print ' '."\n"; - - print '
'."\n"; } + print ' '."\n"; + + print ' '."\n"; print_html_body_end(\*STDOUT, $ong_state == STATE->{'inactive'}); print_html_end(\*STDOUT); -- 2.30.2