mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
Remove some useless use of cat
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
d9c71f4e23
commit
cf4630dbe1
1 changed files with 4 additions and 4 deletions
|
@ -75,8 +75,8 @@ do_c() {
|
|||
exit 1;
|
||||
fi;
|
||||
|
||||
cat <<EOF | gperf -l -t -C -F",0" \
|
||||
--language=ANSI-C -Na_tokenize_aux \
|
||||
gperf -l -t -C -F",0" \
|
||||
--language=ANSI-C -Na_tokenize_aux <<EOF \
|
||||
| sed -e '/__gnu_inline__/d;s/\<\(__\|\)inline\>//g'
|
||||
%{
|
||||
`do_hdr`
|
||||
|
@ -119,8 +119,8 @@ trap "rm -f ${TARGET}" 0
|
|||
|
||||
rm -f "${TARGET}"
|
||||
case "${TARGET}" in
|
||||
*.h) cat "${TOKENS_FILE}" | do_h > "${TARGET}";;
|
||||
*.c) cat "${TOKENS_FILE}" | do_c > "${TARGET}";;
|
||||
*.h) do_h > "${TARGET}" < "${TOKENS_FILE}" ;;
|
||||
*.c) do_c > "${TARGET}" < "${TOKENS_FILE}" ;;
|
||||
*) die "you must ask for the 'h' or 'c' generation";;
|
||||
esac
|
||||
chmod -w "${TARGET}"
|
||||
|
|
Loading…
Reference in a new issue