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