Signed-off-by: Denis 'GNUtoo' Carikli <[email protected]>
---
 .gitignore |  1 +
 Makefile   | 32 ++++++++++++++++++++++++++++++++
 README.txt | 14 ++++++++++++++
 3 files changed, 47 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 Makefile
 create mode 100644 README.txt

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2d19fc7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.html
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d731f56
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,32 @@
+DESTDIR ?= html
+
+TARGETS = \
+       about.html \
+       freedom-privacy-security-issues.html \
+       index.html \
+       javascript.html \
+       screenshots.html \
+       supported-devices.html \
+
+INSTALL_DIRECTORIES = \
+       css \
+       fonts \
+       images \
+       js \
+       library \
+
+all: $(TARGETS)
+
+$(DESTDIR):
+       mkdir -p $(DESTDIR)
+
+%.html: %.php
+       php -f $< | sed 's#\.php#\.html#g' > $@
+
+clean:
+       rm -f $(TARGETS)
+
+install: $(DESTDIR) all
+       install -m644 $(TARGETS) -t $(DESTDIR)
+       cp -a $(INSTALL_DIRECTORIES) $(DESTDIR)
+
diff --git a/README.txt b/README.txt
new file mode 100644
index 0000000..be3c4c5
--- /dev/null
+++ b/README.txt
@@ -0,0 +1,14 @@
+== Deployment strategies ==
+The website can be deployed either as a dynamic version
+or as a static generated version.
+
+The website contains dynamic elements for loading information
+from the forum and the git repositories.
+
+As this is done in PHP, deploying the website as a static version
+can have the side effect of making such information outdated.
+
+Deploying the website as a static version can still be useful, for
+instance for working on it locally wihtout requiring a web server,
+or for deploying a temporary static version during the maintenance
+of the machine hosting the php version.
-- 
2.19.0

_______________________________________________
Replicant mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/replicant

Reply via email to