Fossil SCM

Fixed a few bugs in the Makefile in the www/image-format-vs-repo-size.md doc, and added a caveat about potential further bugs.

wyoung 2019-03-24 18:56 trunk
Commit 82ad5914f101d867cb991a84071d3154b2155495958356ccd81b1962a90d336b
--- www/image-format-vs-repo-size.md
+++ www/image-format-vs-repo-size.md
@@ -159,11 +159,11 @@
159159
Since programs that produce and consume binary-compressed data files
160160
often make it either difficult or impossible to work with the
161161
uncompressed form, we want an automated method for producing the
162162
uncompressed form to make Fossil happy while still having the compressed
163163
form to keep our content creation applications happy. This `Makefile`
164
-will do that for several different compressed file types:
164
+should⁴ do that for BMP, PNG, SVG, and XLSX files:
165165
166166
.SUFFIXES: .bmp .png .svg .svgz
167167
168168
.svgz.svg:
169169
gzip -dc < $< > $@
@@ -181,12 +181,12 @@
181181
182182
183183
all: $(SS_FILES) illus.svg image.bmp doc-big.pdf
184184
185185
reconstitute: illus.svgz image.png
186
- unzip spreadsheet.xlsx -d spreadsheet
187
- qpdf doc-small.pdf doc-big.pdf
186
+ ( cd spreadsheet ; zip -9 ../spreadsheet.xlsx) * )
187
+ qpdf doc-big.pdf doc-small.pdf
188188
189189
190190
$(SS_FILES): spreadsheet.xlsx
191191
unzip $@ -d $<
192192
@@ -257,9 +257,13 @@
257257
more difficult, and the random pixel changes. Those test design
258258
choices make this a [Monte Carlo experient][mce]. We’ve found that
259259
the overall character of the results don’t change much from one run
260260
to the next.
261261
262
+4. The `Makefile` above is not battle-tested. Please report bugs and
263
+ needed extensions [on the forum][for].
264
+
265
+[for]: https://fossil-scm.org/forum/forumpost/15e677f2c8
262266
[git]: https://git-scm.com/
263267
[lzw]: https://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Welch
264268
[rs]: https://rsync.samba.org/
265269
[us]: http://www.cis.upenn.edu/~bcpierce/unison/
266270
--- www/image-format-vs-repo-size.md
+++ www/image-format-vs-repo-size.md
@@ -159,11 +159,11 @@
159 Since programs that produce and consume binary-compressed data files
160 often make it either difficult or impossible to work with the
161 uncompressed form, we want an automated method for producing the
162 uncompressed form to make Fossil happy while still having the compressed
163 form to keep our content creation applications happy. This `Makefile`
164 will do that for several different compressed file types:
165
166 .SUFFIXES: .bmp .png .svg .svgz
167
168 .svgz.svg:
169 gzip -dc < $< > $@
@@ -181,12 +181,12 @@
181
182
183 all: $(SS_FILES) illus.svg image.bmp doc-big.pdf
184
185 reconstitute: illus.svgz image.png
186 unzip spreadsheet.xlsx -d spreadsheet
187 qpdf doc-small.pdf doc-big.pdf
188
189
190 $(SS_FILES): spreadsheet.xlsx
191 unzip $@ -d $<
192
@@ -257,9 +257,13 @@
257 more difficult, and the random pixel changes. Those test design
258 choices make this a [Monte Carlo experient][mce]. We’ve found that
259 the overall character of the results don’t change much from one run
260 to the next.
261
 
 
 
 
262 [git]: https://git-scm.com/
263 [lzw]: https://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Welch
264 [rs]: https://rsync.samba.org/
265 [us]: http://www.cis.upenn.edu/~bcpierce/unison/
266
--- www/image-format-vs-repo-size.md
+++ www/image-format-vs-repo-size.md
@@ -159,11 +159,11 @@
159 Since programs that produce and consume binary-compressed data files
160 often make it either difficult or impossible to work with the
161 uncompressed form, we want an automated method for producing the
162 uncompressed form to make Fossil happy while still having the compressed
163 form to keep our content creation applications happy. This `Makefile`
164 should⁴ do that for BMP, PNG, SVG, and XLSX files:
165
166 .SUFFIXES: .bmp .png .svg .svgz
167
168 .svgz.svg:
169 gzip -dc < $< > $@
@@ -181,12 +181,12 @@
181
182
183 all: $(SS_FILES) illus.svg image.bmp doc-big.pdf
184
185 reconstitute: illus.svgz image.png
186 ( cd spreadsheet ; zip -9 ../spreadsheet.xlsx) * )
187 qpdf doc-big.pdf doc-small.pdf
188
189
190 $(SS_FILES): spreadsheet.xlsx
191 unzip $@ -d $<
192
@@ -257,9 +257,13 @@
257 more difficult, and the random pixel changes. Those test design
258 choices make this a [Monte Carlo experient][mce]. We’ve found that
259 the overall character of the results don’t change much from one run
260 to the next.
261
262 4. The `Makefile` above is not battle-tested. Please report bugs and
263 needed extensions [on the forum][for].
264
265 [for]: https://fossil-scm.org/forum/forumpost/15e677f2c8
266 [git]: https://git-scm.com/
267 [lzw]: https://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Welch
268 [rs]: https://rsync.samba.org/
269 [us]: http://www.cis.upenn.edu/~bcpierce/unison/
270

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button