Remove some useless use of cat

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2009-05-09 19:14:56 +02:00 committed by Julien Danjou
parent d9c71f4e23
commit cf4630dbe1
1 changed files with 4 additions and 4 deletions

View File

@ -75,8 +75,8 @@ do_c() {
exit 1; exit 1;
fi; fi;
cat <<EOF | gperf -l -t -C -F",0" \ gperf -l -t -C -F",0" \
--language=ANSI-C -Na_tokenize_aux \ --language=ANSI-C -Na_tokenize_aux <<EOF \
| sed -e '/__gnu_inline__/d;s/\<\(__\|\)inline\>//g' | sed -e '/__gnu_inline__/d;s/\<\(__\|\)inline\>//g'
%{ %{
`do_hdr` `do_hdr`
@ -119,8 +119,8 @@ trap "rm -f ${TARGET}" 0
rm -f "${TARGET}" rm -f "${TARGET}"
case "${TARGET}" in case "${TARGET}" in
*.h) cat "${TOKENS_FILE}" | do_h > "${TARGET}";; *.h) do_h > "${TARGET}" < "${TOKENS_FILE}" ;;
*.c) cat "${TOKENS_FILE}" | do_c > "${TARGET}";; *.c) do_c > "${TARGET}" < "${TOKENS_FILE}" ;;
*) die "you must ask for the 'h' or 'c' generation";; *) die "you must ask for the 'h' or 'c' generation";;
esac esac
chmod -w "${TARGET}" chmod -w "${TARGET}"