diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | GNUmakefile | 17 | ||||
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | NEWS | 56 | ||||
-rw-r--r-- | README | 5 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | git2clog.pl | 77 |
7 files changed, 160 insertions, 5 deletions
@@ -5,6 +5,7 @@ *.l[oa] .emacs* .gdbinit +ChangeLog Makefile Makefile.in aclocal.m4 diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 0000000..c36f6cd --- /dev/null +++ b/GNUmakefile @@ -0,0 +1,17 @@ +ifneq (,$(wildcard Makefile)) + include Makefile + +.PHONY: ChangeLog +ChangeLog: + @perl ./git2clog.pl + +else +$(if $(MAKECMDGOALS),$(MAKECMDGOALS),all): Makefile + $(MAKE) $(MAKECMDGOALS) + +Makefile: Makefile.am configure + ./configure + +configure: configure.ac + autoreconf -f -i -s +endif diff --git a/Makefile.am b/Makefile.am index 2bd6172..b7478fb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,4 @@ -EXTRA_DIST=README wordsplit/wordsplit.c wordsplit/wordsplit.h +EXTRA_DIST=README ChangeLog wordsplit/wordsplit.c wordsplit/wordsplit.h SUBDIRS = mimetypes src distuninstallcheck_listfiles = find . -type f -not -name 'fileserv.conf' -print + @@ -0,0 +1,56 @@ +fileserv -- history of user-visible changes. 2019-07-25 +See the end of file for copying conditions. + +Please send fileserv bug reports to <gray+fileserv@gnu.org.ua> + +Version 0.3.90 (git) + +Version 0.3, 2018-04-21 + +* Global configuration file + +* Per-directory configuration files. + +* MIME type autodetection + +* Auto-generated directory indexes + +Index pages are generated from user-supplied templates. In the absense +of these, the built-in template is used. + +* Listen on all available IP addresses if none is set explicitly + +* Configurable HTTP status handling + +* Handle IPv4 mapped addresses + +Version 0.2, 2017-10-26 + +Initial release. + + +========================================================================= +Copyright information: + +Copyright (C) 2017-2019 Sergey Poznyakoff + + Permission is granted to anyone to make or distribute verbatim copies + of this document as received, in any medium, provided that the + copyright notice and this permission notice are preserved, + thus giving the recipient permission to redistribute in turn. + + Permission is granted to distribute modified versions + of this document, or of portions of it, + under the above conditions, provided also that they + carry prominent notices stating who last changed them. + +Local variables: +mode: outline +paragraph-separate: "[ ]*$" +eval: (add-hook 'write-file-hooks 'time-stamp) +time-stamp-start: "changes. " +time-stamp-format: "%:y-%02m-%02d" +time-stamp-end: "\n" +end: + + @@ -1,3 +1,6 @@ +fileserv README. +See the end of file for copying conditions. + * Overview This is a simple HTTP server for serving static files. It is suitable @@ -96,7 +99,7 @@ Send bug reports to <gray+fileserv@gnu.org.ua>. * Copyright information: -Copyright (C) 2017-2018 Sergey Poznyakoff +Copyright (C) 2017-2019 Sergey Poznyakoff Permission is granted to anyone to make or distribute verbatim copies of this document as received, in any medium, provided that the diff --git a/configure.ac b/configure.ac index a3cfc01..c549892 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ # -*- Autoconf -*- # This file is part of fileserv. -# Copyright (C) 2017, 2018 Sergey Poznyakoff +# Copyright (C) 2017-2019 Sergey Poznyakoff # # Fileserv is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -15,9 +15,9 @@ # You should have received a copy of the GNU General Public License # along with fileserv. If not, see <http://www.gnu.org/licenses/>. -AC_INIT([fileserv], 0.3, [gray+fileserv@gnu.org.ua]) +AC_INIT([fileserv], 0.3.90, [gray+fileserv@gnu.org.ua]) AC_CONFIG_SRCDIR([src/fileserv.c]) -AM_INIT_AUTOMAKE([1.11 foreign tar-ustar dist-xz silent-rules]) +AM_INIT_AUTOMAKE([1.15 foreign tar-ustar dist-xz silent-rules]) # Enable silent rules by default: AM_SILENT_RULES([yes]) # Checks for programs. diff --git a/git2clog.pl b/git2clog.pl new file mode 100644 index 0000000..de93e3d --- /dev/null +++ b/git2clog.pl @@ -0,0 +1,77 @@ +# Pretty simple ChangeLog generator -*-perl-*- +# Copyright (C) 2019 Sergey Poznyakoff +# Distributed under the terms of the GNU General Public License, either +# version 3, or (at your option) any later version. See file COPYING +# for the text of the license. +use strict; +use warnings; + +my $name = shift @ARGV || 'ChangeLog'; +my $outfile = "$name.$$"; + +END { + if (-f $outfile) { + unlink $outfile + } +} + +my $header; + +die "must be run in a cloned source tree\n" unless -d '.git'; + +if (-f $name) { + open(FH, '<', $name) + or die "can't open $name for reading: $!\n"; + chomp($header = <FH>); + close FH +} + +open(STDIN, '-|', + q{git log --pretty='format:<%ci>%an <%ae>%n%n%s%n%n%b%n'}) + or die "can't run git: $!\n"; + +open(STDOUT, '>', $outfile) + or die "can't open temporary file\n"; + +my $nl = 0; +while (<>) { + chomp; + if (/^\s*$/) { + $nl++; + } else { + if ($nl) { + print "\n"; + $nl = 0; + } + if (s/^<([\d-]+) .*?>(.*)/$1 $2/) { + if (defined($header)) { + if ($_ eq $header) { + exit(0) + } + $header = undef + } + } else { + print "\t"; + } + print "$_\n"; + } +} + +print "\f\nLocal Variables:\n"; +print <<'EOT'; +mode: change-log +version-control: never +buffer-read-only: t +End: +EOT +; + +close STDOUT; +if (-f $name) { + unlink $name or die "can't unlink $name: $!\n"; +} +rename $outfile, $name or die "can't rename $outfile to $name: $!\n"; + + + + |