From a4dbc9de17f303b9d1ced4f743746f32aabca92a Mon Sep 17 00:00:00 2001
From: Roland Reichwein <mail@reichwein.it>
Date: Sat, 7 Jan 2023 12:21:39 +0100
Subject: Updated DISTFILES

---
 Makefile         | 125 ++++++++++++++++++++++++++++++++-----------------------
 debian/changelog |   2 +
 2 files changed, 75 insertions(+), 52 deletions(-)

diff --git a/Makefile b/Makefile
index adfc525..c9b0d66 100644
--- a/Makefile
+++ b/Makefile
@@ -118,43 +118,28 @@ clean:
 	$(MAKE) -C tests clean
 	-rm -rf result
 
+DISTFILES=$(shell git ls-files 2>/dev/null)
+ifeq ($(DISTFILES),)
 DISTFILES= \
+	.gitignore \
+	LICENSE.txt \
+	Makefile \
+	README.txt \
+	TODO \
 	auth.cpp \
 	auth.h \
+	common.mk \
 	config.cpp \
 	config.h \
-	http.cpp \
-	http.h \
-	https.cpp \
-	https.h \
-	main.cpp \
-	plugin.cpp \
-	plugin.h \
-	plugin_interface.h \
-	privileges.cpp \
-	privileges.h \
-	response.cpp \
-	response.h \
-	server.cpp \
-	server.h \
-	statistics.cpp \
-	statistics.h \
-	tests/Makefile \
-	tests/test-environment.cpp \
-	tests/test-webserver.cpp \
-	webserver.h \
-	webserver.cpp \
-	webserver.1 \
-	README.txt \
-	LICENSE.txt \
-	install-webserver.sh \
-	Makefile \
-	common.mk \
+	debian/README.Debian \
 	debian/changelog \
 	debian/compat \
 	debian/control \
 	debian/copyright \
-	debian/README.Debian \
+	debian/example/banner256.png \
+	debian/example/favicon.ico \
+	debian/example/index.html \
+	debian/example/reichwein.css \
 	debian/rules \
 	debian/source/format \
 	debian/webserver.conf \
@@ -163,45 +148,81 @@ DISTFILES= \
 	debian/webserver.install \
 	debian/webserver.manpages \
 	debian/webserver.service \
-	plugins/cgi/cgi.h \
+	http.cpp \
+	http.h \
+	https.cpp \
+	https.h \
+	install-webserver.sh \
+	main.cpp \
+	plugin.cpp \
+	plugin.h \
+	plugin_interface.h \
 	plugins/cgi/Makefile \
 	plugins/cgi/cgi.cpp \
+	plugins/cgi/cgi.h \
 	plugins/fcgi/Makefile \
 	plugins/fcgi/fastcgi.h \
-	plugins/fcgi/fcgi.h \
 	plugins/fcgi/fcgi.cpp \
-	plugins/fcgi/fcgiid.h \
+	plugins/fcgi/fcgi.h \
 	plugins/fcgi/fcgiid.cpp \
-	plugins/fcgi/socket.h \
+	plugins/fcgi/fcgiid.h \
 	plugins/fcgi/socket.cpp \
-	plugins/webbox/webbox.h \
-	plugins/webbox/html/refresh-inverted.png \
+	plugins/fcgi/socket.h \
+	plugins/redirect/Makefile \
+	plugins/redirect/redirect.cpp \
+	plugins/redirect/redirect.h \
+	plugins/static-files/Makefile \
+	plugins/static-files/static-files.cpp \
+	plugins/static-files/static-files.h \
+	plugins/statistics/Makefile \
+	plugins/statistics/statistics.cpp \
+	plugins/statistics/statistics.h \
+	plugins/webbox/Makefile \
+	plugins/webbox/html/checkbox-checked.png \
+	plugins/webbox/html/checkbox.png \
 	plugins/webbox/html/directory.png \
+	plugins/webbox/html/favicon.ico \
 	plugins/webbox/html/file.png \
+	plugins/webbox/html/index.html \
 	plugins/webbox/html/menu.png \
+	plugins/webbox/html/refresh-inverted.png \
 	plugins/webbox/html/webbox.css \
-	plugins/webbox/html/favicon.ico \
-	plugins/webbox/html/index.html \
 	plugins/webbox/html/webbox.js \
-	plugins/webbox/html/checkbox.png \
-	plugins/webbox/html/checkbox-checked.png \
-	plugins/webbox/Makefile \
 	plugins/webbox/webbox.cpp \
-	plugins/weblog/weblog.h \
-	plugins/weblog/procmail/procmailrc \
-	plugins/weblog/procmail/procmail.sh \
+	plugins/webbox/webbox.h \
 	plugins/weblog/Makefile \
+	plugins/weblog/html/blog.css \
+	plugins/weblog/html/favicon.ico \
+	plugins/weblog/procmail/procmail.sh \
+	plugins/weblog/procmail/procmailrc \
 	plugins/weblog/weblog.cpp \
-	plugins/redirect/Makefile \
-	plugins/redirect/redirect.h \
-	plugins/redirect/redirect.cpp \
-	plugins/static-files/static-files.h \
-	plugins/static-files/static-files.cpp \
-	plugins/static-files/Makefile \
-	plugins/statistics/statistics.h \
-	plugins/statistics/Makefile \
-	plugins/statistics/statistics.cpp
-	
+	plugins/weblog/weblog.h \
+	privileges.cpp \
+	privileges.h \
+	response.cpp \
+	response.h \
+	server.cpp \
+	server.h \
+	statistics.cpp \
+	statistics.h \
+	tests/Makefile \
+	tests/test-auth.cpp \
+	tests/test-config.cpp \
+	tests/test-environment.cpp \
+	tests/test-http.cpp \
+	tests/test-https.cpp \
+	tests/test-plugin.cpp \
+	tests/test-privileges.cpp \
+	tests/test-response.cpp \
+	tests/test-server.cpp \
+	tests/test-statistics.cpp \
+	tests/test-webserver.cpp \
+	webserver.1 \
+	webserver.conf \
+	webserver.cpp \
+	webserver.h
+endif
+
 dist: clean
 	rm -rf $(PROJECTNAME)-$(VERSION)
 	mkdir $(PROJECTNAME)-$(VERSION)
diff --git a/debian/changelog b/debian/changelog
index ef62294..9fb309e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 webserver (1.17) unstable; urgency=medium
 
   * Automated date handling (year)
+  * Added tests
+  * Minor bugfixes
 
  -- Roland Reichwein <mail@reichwein.it>  Fri, 04 Nov 2022 17:16:39 +0100
 
-- 
cgit v1.2.3