xref: /freebsd/contrib/tcsh/nls/catgen (revision 4436b51dff5736e74da464946049ea6899a88938)
1#!/bin/sh
2# Wrapper for gencat
3TMP=/tmp/catgen.$$
4trap "rm -f $TMP" 0 1 2 3 15
5
6GENCAT="$1"
7shift
8OUT="$1"
9shift
10cat "$@" > "$TMP"
11echo "$(basename "$OUT" .cat)"
12"${GENCAT}" "$OUT" "$TMP"
13