diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2019-05-24 19:23:39 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2019-05-24 19:23:39 +0200 |
commit | a6818d5bd0099de3f36406481b1672e430dacba5 (patch) | |
tree | 085c51bad630312c516ee52bca58f88d0c76aff1 | |
parent | 4cfc34d9a8bffe4a1dd53187a3e0f25f34023a09 (diff) | |
download | ffmpeg-streaming-a6818d5bd0099de3f36406481b1672e430dacba5.zip ffmpeg-streaming-a6818d5bd0099de3f36406481b1672e430dacba5.tar.gz |
compat/cuda/ptx2c: don't drop final newline
-rwxr-xr-x | compat/cuda/ptx2c.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/cuda/ptx2c.sh b/compat/cuda/ptx2c.sh index 5ccabbf..0750e7a 100755 --- a/compat/cuda/ptx2c.sh +++ b/compat/cuda/ptx2c.sh @@ -27,7 +27,7 @@ IN="$2" NAME="$(basename "$IN" | sed 's/\..*//')" printf "const char %s_ptx[] = \\" "$NAME" > "$OUT" -while read LINE +while IFS= read -r LINE do printf "\n\t\"%s\\\n\"" "$(printf "%s" "$LINE" | sed -e 's/\r//g' -e 's/["\\]/\\&/g')" >> "$OUT" done < "$IN" |