# HG changeset patch # User Kai T. Ohlhus # Date 1548777801 -3600 # Node ID 839113398e6fcd541bd4562b6948733740962ec4 # Parent 62beee286693bba8b03ffe2edb8e94fae682b49a Makefile: Make rules to succeed in any case and small improvements. diff -r 62beee286693 -r 839113398e6f Makefile --- 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 #