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.
Commit
82ad5914f101d867cb991a84071d3154b2155495958356ccd81b1962a90d336b
Parent
41579b4c8416802…
1 file changed
+7
-3
+7
-3
| --- www/image-format-vs-repo-size.md | ||
| +++ www/image-format-vs-repo-size.md | ||
| @@ -159,11 +159,11 @@ | ||
| 159 | 159 | Since programs that produce and consume binary-compressed data files |
| 160 | 160 | often make it either difficult or impossible to work with the |
| 161 | 161 | uncompressed form, we want an automated method for producing the |
| 162 | 162 | uncompressed form to make Fossil happy while still having the compressed |
| 163 | 163 | 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: | |
| 165 | 165 | |
| 166 | 166 | .SUFFIXES: .bmp .png .svg .svgz |
| 167 | 167 | |
| 168 | 168 | .svgz.svg: |
| 169 | 169 | gzip -dc < $< > $@ |
| @@ -181,12 +181,12 @@ | ||
| 181 | 181 | |
| 182 | 182 | |
| 183 | 183 | all: $(SS_FILES) illus.svg image.bmp doc-big.pdf |
| 184 | 184 | |
| 185 | 185 | 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 | |
| 188 | 188 | |
| 189 | 189 | |
| 190 | 190 | $(SS_FILES): spreadsheet.xlsx |
| 191 | 191 | unzip $@ -d $< |
| 192 | 192 | |
| @@ -257,9 +257,13 @@ | ||
| 257 | 257 | more difficult, and the random pixel changes. Those test design |
| 258 | 258 | choices make this a [Monte Carlo experient][mce]. We’ve found that |
| 259 | 259 | the overall character of the results don’t change much from one run |
| 260 | 260 | to the next. |
| 261 | 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 | |
| 262 | 266 | [git]: https://git-scm.com/ |
| 263 | 267 | [lzw]: https://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Welch |
| 264 | 268 | [rs]: https://rsync.samba.org/ |
| 265 | 269 | [us]: http://www.cis.upenn.edu/~bcpierce/unison/ |
| 266 | 270 |
| --- 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 |