summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh/nls/catgen
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tcsh/nls/catgen')
-rwxr-xr-xcontrib/tcsh/nls/catgen12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/tcsh/nls/catgen b/contrib/tcsh/nls/catgen
new file mode 100755
index 0000000..ae1614d
--- /dev/null
+++ b/contrib/tcsh/nls/catgen
@@ -0,0 +1,12 @@
+#!/bin/sh
+# Wrapper for gencat
+TMP=/tmp/catgen.$$
+trap "rm -f $TMP" 0 1 2 3 15
+
+GENCAT="$1"
+shift
+OUT="$1"
+shift
+cat "$@" > "$TMP"
+echo "$(basename "$OUT" .cat)"
+"${GENCAT}" "$OUT" "$TMP"
OpenPOWER on IntegriCloud