Commit ec1b3aeb authored by Rye Mutt's avatar Rye Mutt 🍞
Browse files

Add autobuild files

parent 00f64634
Pipeline #1221 passed with stages
in 1 minute and 28 seconds
include:
- project: 'alchemy/infrastructure/gitlab-ci-config'
file: '3p-library.yml'
variables:
BUILD_COMMON: 1
BUILD_WINDOWS: 0
BUILD_WINDOWS64: 0
BUILD_LINUX64: 0
BUILD_MACOS: 0
# DejaVu Fonts - 2.37
\ No newline at end of file
<?xml version="1.0" ?>
<llsd>
<map>
<key>package_description</key>
<map>
<key>canonical_repo</key>
<string>https://git.alchemyviewer.org/alchemy/thirdparty/3p-fonts</string>
<key>copyright</key>
<string>Various Licenses</string>
<key>description</key>
<string>A collection of fonts used by the viewer</string>
<key>license</key>
<string>various</string>
<key>license_file</key>
<string>LICENSES/fonts.txt</string>
<key>name</key>
<string>fonts</string>
<key>platforms</key>
<map>
<key>common</key>
<map>
<key>build_directory</key>
<string>stage</string>
<key>configurations</key>
<map>
<key>default</key>
<map>
<key>build</key>
<map>
<key>arguments</key>
<array>
<string>../build-cmd.sh</string>
</array>
<key>command</key>
<string>sh</string>
</map>
<key>default</key>
<string>True</string>
<key>name</key>
<string>default</string>
</map>
</map>
<key>manifest</key>
<array>
<string>fonts/*</string>
</array>
<key>name</key>
<string>common</string>
</map>
</map>
<key>version_file</key>
<string>VERSION.txt</string>
</map>
<key>type</key>
<string>autobuild</string>
<key>version</key>
<string>1.3</string>
</map>
</llsd>
#!/usr/bin/env bash
# turn on verbose debugging output for logs.
exec 4>&1; export BASH_XTRACEFD=4; set -x
# make errors fatal
set -e
# bleat on references to undefined shell variables
set -u
# The tut package itself doesn't seem to have a version number anywhere other than
# the original source directory name, which conflicts with our vendor branching convention;
# So.. the original version has been preserved here and will be used to construct
# the version file for autobuild to read.
FONTS_VERSION=$(git rev-parse --short HEAD)
echo "$FONTS_VERSION" | sed 's/-/./g' > VERSION.txt
# this script should be executed from the build output directory (stage)
FONTS_SOURCE_DIR="../fonts"
mkdir -p fonts
# Copy DejaVu
cp -r "$FONTS_SOURCE_DIR/dejavu/DejaVuSans.ttf" "fonts/"
cp -r "$FONTS_SOURCE_DIR/dejavu/DejaVuSans-Bold.ttf" "fonts/"
cp -r "$FONTS_SOURCE_DIR/dejavu/DejaVuSans-BoldOblique.ttf" "fonts/"
cp -r "$FONTS_SOURCE_DIR/dejavu/DejaVuSans-Oblique.ttf" "fonts/"
cp -r "$FONTS_SOURCE_DIR/dejavu/DejaVuSansMono.ttf" "fonts/"
mkdir -p LICENSES
cp "../LICENSE.md" LICENSES/fonts.txt
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment