Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

1#!/bin/sh 2 3set -eu 4 5GLEAM_COMMAND=${GLEAM_COMMAND:-"cargo run --quiet --"} 6 7g() { 8 echo "Running: $GLEAM_COMMAND $@" 9 $GLEAM_COMMAND "$@" 10} 11 12fail() { 13 echo "$1" >&2 14 exit 1 15} 16 17file=src/symlink_escape.gleam 18target="../../hextarball/src/hextarball.gleam" 19 20echo "Checking that the src file is a symlink" 21 22if [ ! -L "$file" ]; then 23 fail "Expected $file to be a symlink" 24fi 25 26if [ ! -e "$file" ]; then 27 fail "Expected $file to resolve" 28fi 29 30actual=$(readlink "$file") 31if [ "$actual" != "$target" ]; then 32 fail "Expected $file to resolve to $target, got $actual" 33fi 34 35echo Resetting the build directory to get to a known state 36rm -fr build 37 38echo Running publish should not publish anything 39if yes "n" | g publish; then 40 echo "Expected publish to fail, but it succeeded" 41 exit 1 42fi 43 44echo 45echo Success! 💖 46echo