1#!/bin/sh
2# Helper script to create "slibcat" before installing gosh.
3# The caller must guarantee existence of slib.
4# See "slibcat-in-place" target in the Makefile.
5#
6# Usage: mklibcat PATH-TO-GOSH
7
8set -e
9
10GOSH=$1
11
12$GOSH -ftest -uslib  \
13    -E'with-module slib (define (implementation-vicinity) "./")' \
14    -E"require 'new-catalog" \
15    -Eexit
16
17