From 4625ff5d7f43c0ca351558265b8975c57a077040 Mon Sep 17 00:00:00 2001 From: Peter Oliver Date: Sat, 23 Dec 2023 12:09:10 +0000 Subject: [PATCH] Provide a way to specify the version of TTFs This should be done when building TTFs for release, so that the new fonts can be committed before the Git tag is created. Fixes #485. --- font/README.md | 2 +- helpers/generate-fonts.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/font/README.md b/font/README.md index 279665cbe..a958d25cb 100644 --- a/font/README.md +++ b/font/README.md @@ -69,7 +69,7 @@ You need to have the following installed: 2. Open a terminal and go to the OpenMoji folder - `cd path/to/openmoji` 3. Run the font builder - - `./helpers/generate-fonts.sh` + - `./helpers/generate-fonts.sh [version]` - Wait for build to finish. This can take a few hours for the initial run. Be patient! 4. Done ✅ diff --git a/helpers/generate-fonts.sh b/helpers/generate-fonts.sh index 3e01cf377..fdacc9d54 100755 --- a/helpers/generate-fonts.sh +++ b/helpers/generate-fonts.sh @@ -11,7 +11,7 @@ set -ueo pipefail cd -- "$(dirname -- "${BASH_SOURCE[0]}")"/.. || exit 1 build_dir="/mnt/build" -version=$(git describe --tags) +version=${1:-$(git describe --tags)} # If we're connected to a terminal, don't flood it with ninja output, # and enable ^C.