File: css-build.sh

package info (click to toggle)
fonts-hack 3.003-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,564 kB
  • sloc: sh: 811; python: 129; makefile: 34; xml: 30
file content (20 lines) | stat: -rwxr-xr-x 639 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

#######################################
# Copyright 2018 Christopher Simpkins
# MIT License
#######################################

# This script builds the Hack web font CSS files from CSS file templates
#  by adding a git commit sha1 stamp to the URL string

# Dependency:
#  Ink - https://github.com/chrissimpkins/ink (Go text templating application)
#      - install with `go get github.com/chrissimpkins/ink`

# Usage:
#  execute script from root of Hack repository with make using the following:
#      $ make css


git log --pretty=format:'%h' --abbrev-commit -1 | ink build/web/hack.css.in build/web/hack-subset.css.in