mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-02 21:01:56 +00:00
compat/cuda/ptx2c: don't drop final newline
This commit is contained in:
parent
4cfc34d9a8
commit
a6818d5bd0
@ -27,7 +27,7 @@ IN="$2"
|
|||||||
NAME="$(basename "$IN" | sed 's/\..*//')"
|
NAME="$(basename "$IN" | sed 's/\..*//')"
|
||||||
|
|
||||||
printf "const char %s_ptx[] = \\" "$NAME" > "$OUT"
|
printf "const char %s_ptx[] = \\" "$NAME" > "$OUT"
|
||||||
while read LINE
|
while IFS= read -r LINE
|
||||||
do
|
do
|
||||||
printf "\n\t\"%s\\\n\"" "$(printf "%s" "$LINE" | sed -e 's/\r//g' -e 's/["\\]/\\&/g')" >> "$OUT"
|
printf "\n\t\"%s\\\n\"" "$(printf "%s" "$LINE" | sed -e 's/\r//g' -e 's/["\\]/\\&/g')" >> "$OUT"
|
||||||
done < "$IN"
|
done < "$IN"
|
||||||
|
Loading…
Reference in New Issue
Block a user