open-sans-fonts/getopensans.sh
Petr Šabata fe82652c58 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/open-sans-fonts#76495efd459d4ecd254e2c38eee73a76a94cc0da
2020-10-15 21:46:54 +02:00

16 lines
426 B
Bash
Executable File

#!/bin/bash
# Get upstream zip and make source tar.gz
ARCHIVE="open-sans-fonts-1.10"
TMPDIR=$(mktemp -d --tmpdir=/var/tmp getopensans-XXXXXXXXXX)
[ $? != 0 ] && exit 1
umask 022
pushd "$TMPDIR"
wget -N -O $ARCHIVE.zip http://www.google.com/fonts/download?kit=3hvsV99qyKCBS55e5pvb3ltkqrIMaAZWyLYEoB48lSQ
unzip $ARCHIVE.zip -d $ARCHIVE
tar -cvJf "$ARCHIVE.tar.xz" $ARCHIVE
popd
mv "$TMPDIR/$ARCHIVE.tar.xz" .
rm -fr "$TMPDIR"