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