xref: /freebsd/contrib/tcsh/nls/catgen (revision fcb560670601b2a4d87bb31d7531c8dcc37ee71b)
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