Remove some useless use of cat
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
d9c71f4e23
commit
cf4630dbe1
|
@ -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}"
|
||||||
|
|
Loading…
Reference in New Issue