changeset 162:839113398e6f

Makefile: Make rules to succeed in any case and small improvements.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Tue, 29 Jan 2019 17:03:21 +0100
parents 62beee286693
children dcc5564ed7ad
files Makefile
diffstat 1 files changed, 14 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Sep 10 19:58:21 2018 +0200
+++ b/Makefile	Tue Jan 29 17:03:21 2019 +0100
@@ -18,20 +18,20 @@
 	#
 	jekyll build
 	#
-	# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
-	# DANGAROUS STEP, ommitted by default.
+	# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
+	# DANGEROUS STEP, omitted by default.
 	#
-	# Remove all previous files in the target directory, but no directories at
-	# all or CVS related stuff.  This is due to a limitation of CVS, see
+	# Remove all previous files in the target directory, but no directories
+	# at all or CVS related stuff.  This is due to a limitation of CVS, see
 	#
 	#   https://web.archive.org/web/20140629054602/http://ximbiot.com/cvs/manual/cvs-1.11.23/cvs_7.html#SEC69
 	#
-	# For some introduction to CVS, see https://savannah.nongnu.org/projects/cvs
-	# or http://www.cs.umb.edu/~srevilak/cvs.html.
+	# For some introduction to CVS, see
+	#    https://savannah.nongnu.org/projects/cvs
+	#    https://www.cs.umb.edu/~srevilak/cvs.html
 	#
 	# find $(SAVANNAH_DIR) -type f -not -path "*/CVS/*" -exec rm -f '{}' \;
-	#
-	# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+	# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 	#
 	# Copy the content of that directory `_site` into the checked out
 	# Savannah CVS (see make target $(SAVANNAH_DIR)).
@@ -40,15 +40,17 @@
 	#
 	# Add all potential new directories to CVS
 	#
-	cd $(SAVANNAH_DIR) && find . -type d -not -name "CVS" -exec cvs add '{}' \;
+	cd $(SAVANNAH_DIR) \
+	  && find . -type d -not -name "CVS" -exec cvs add '{}' \; \
+	  | true  # succeed in any case
 	#
 	# Add all potential new files to CVS (the following command taken from
 	# http://stackoverflow.com/questions/5071/how-to-add-cvs-directories-recursively
-	# proved to be fast)
+	# proved to be fast) and succeed in any case.
 	#
-	cd $(SAVANNAH_DIR) && find . -type f | grep -v CVS | xargs cvs add
+	cd $(SAVANNAH_DIR) && find . -type f | grep -v CVS | xargs cvs add | true
 	#
-	# Commit the chages to get online.
+	# Commit the changes to get online.
 	#
 	cd $(SAVANNAH_DIR) && cvs commit
 	#