Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update Font-Awesome #208

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

romain-dartigues
Copy link

@romain-dartigues romain-dartigues commented Oct 14, 2020

Upgrade Font Awesome from 4.7.0 to 5.15.1.

I made the following quick-and-dirty script, but I would like to ease the upgrade of third-party libraries; is it worth the effort? Do you remember which versions you started with?

#!/bin/sh

set -e
set -u
set -x

: "${VERS:=5.15.1}"
ARCHIVE=fontawesome-free-${VERS}-web.zip
URL=https://use.fontawesome.com/releases/v${VERS}/${ARCHIVE}

TEMPDIR=$(mktemp -d)
BASE="${TEMPDIR}/${ARCHIVE%.*}"

trap 'rm -fr "$TEMPDIR"' INT TERM EXIT

wget -q -P "$TEMPDIR" "$URL"
unzip -d "$TEMPDIR" "${TEMPDIR}/${ARCHIVE}"

mv -vf "${BASE}/css/all.min.css" static/css/font-awesome.min.css
mv -vf "${BASE}/webfonts/"*.* static/webfonts/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant