| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | ####################################### |
| 4 | # Copyright 2018 Christopher Simpkins |
| 5 | # MIT License |
| 6 | ####################################### |
| 7 | |
| 8 | # This script builds the Hack web font CSS files from CSS file templates |
| 9 | # by adding a git commit sha1 stamp to the URL string |
| 10 | |
| 11 | # Dependency: |
| 12 | # Ink - https://github.com/chrissimpkins/ink (Go text templating application) |
| 13 | # - install with `go get github.com/chrissimpkins/ink` |
| 14 | |
| 15 | # Usage: |
| 16 | # execute script from root of Hack repository with make using the following: |
| 17 | # $ make css |
| 18 | |
| 19 | |
| 20 | gitscip-shell system . . git. log --pretty=format:'%h' --abbrev-commit -1 | ink build/web/hack.css.in build/web/hack-subset.css.in |