#!/bin/sh cache() { name="/tmp/librune/rtype/$(basename "$1")" if test ! -f "$name" then mkdir -p /tmp/librune/rtype wget -q "$1" -O "$name" fi } set -e cd "${0%/*}/.." exec >include/internal/rtype/jg.h readonly URL='https://www.unicode.org/Public/UCD/latest/ucd/extracted/DerivedJoiningGroup.txt' cache "$URL" cat <