Mercurial > web-octave
comparison Makefile @ 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 | d851f4f89fb4 |
children | 7a664b44fd8d |
comparison
equal
deleted
inserted
replaced
161:62beee286693 | 162:839113398e6f |
---|---|
16 # | 16 # |
17 # Build static website into the subdirectory `_site` using Jekyll | 17 # Build static website into the subdirectory `_site` using Jekyll |
18 # | 18 # |
19 jekyll build | 19 jekyll build |
20 # | 20 # |
21 # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | 21 # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv |
22 # DANGAROUS STEP, ommitted by default. | 22 # DANGEROUS STEP, omitted by default. |
23 # | 23 # |
24 # Remove all previous files in the target directory, but no directories at | 24 # Remove all previous files in the target directory, but no directories |
25 # all or CVS related stuff. This is due to a limitation of CVS, see | 25 # at all or CVS related stuff. This is due to a limitation of CVS, see |
26 # | 26 # |
27 # https://web.archive.org/web/20140629054602/http://ximbiot.com/cvs/manual/cvs-1.11.23/cvs_7.html#SEC69 | 27 # https://web.archive.org/web/20140629054602/http://ximbiot.com/cvs/manual/cvs-1.11.23/cvs_7.html#SEC69 |
28 # | 28 # |
29 # For some introduction to CVS, see https://savannah.nongnu.org/projects/cvs | 29 # For some introduction to CVS, see |
30 # or http://www.cs.umb.edu/~srevilak/cvs.html. | 30 # https://savannah.nongnu.org/projects/cvs |
31 # https://www.cs.umb.edu/~srevilak/cvs.html | |
31 # | 32 # |
32 # find $(SAVANNAH_DIR) -type f -not -path "*/CVS/*" -exec rm -f '{}' \; | 33 # find $(SAVANNAH_DIR) -type f -not -path "*/CVS/*" -exec rm -f '{}' \; |
33 # | 34 # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
34 # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
35 # | 35 # |
36 # Copy the content of that directory `_site` into the checked out | 36 # Copy the content of that directory `_site` into the checked out |
37 # Savannah CVS (see make target $(SAVANNAH_DIR)). | 37 # Savannah CVS (see make target $(SAVANNAH_DIR)). |
38 # | 38 # |
39 cp -a _site/. $(SAVANNAH_DIR) | 39 cp -a _site/. $(SAVANNAH_DIR) |
40 # | 40 # |
41 # Add all potential new directories to CVS | 41 # Add all potential new directories to CVS |
42 # | 42 # |
43 cd $(SAVANNAH_DIR) && find . -type d -not -name "CVS" -exec cvs add '{}' \; | 43 cd $(SAVANNAH_DIR) \ |
44 && find . -type d -not -name "CVS" -exec cvs add '{}' \; \ | |
45 | true # succeed in any case | |
44 # | 46 # |
45 # Add all potential new files to CVS (the following command taken from | 47 # Add all potential new files to CVS (the following command taken from |
46 # http://stackoverflow.com/questions/5071/how-to-add-cvs-directories-recursively | 48 # http://stackoverflow.com/questions/5071/how-to-add-cvs-directories-recursively |
47 # proved to be fast) | 49 # proved to be fast) and succeed in any case. |
48 # | 50 # |
49 cd $(SAVANNAH_DIR) && find . -type f | grep -v CVS | xargs cvs add | 51 cd $(SAVANNAH_DIR) && find . -type f | grep -v CVS | xargs cvs add | true |
50 # | 52 # |
51 # Commit the chages to get online. | 53 # Commit the changes to get online. |
52 # | 54 # |
53 cd $(SAVANNAH_DIR) && cvs commit | 55 cd $(SAVANNAH_DIR) && cvs commit |
54 # | 56 # |
55 # Now everything should be visible to the world. | 57 # Now everything should be visible to the world. |
56 # | 58 # |