unison/unison-src/builtin-tests/setup-base-codebase.sh
2023-05-25 09:42:27 -04:00

12 lines
314 B
Bash
Executable File

#!/bin/bash
set -ex
ucm=$(stack exec -- which unison)
base_codebase=${XDG_CACHE_HOME:-"$HOME/.cache"}/unisonlanguage/base.unison
if [ ! -d $base_codebase ]; then
# -S specificies the output codebase (-C specifies the input codebase)
$ucm transcript -S $base_codebase unison-src/builtin-tests/base.md
fi