ffmpeg | branch: master | Timo Rothenpieler <t...@rothenpieler.org> | Fri May 24 19:23:39 2019 +0200| [a6818d5bd0099de3f36406481b1672e430dacba5] | committer: Timo Rothenpieler
compat/cuda/ptx2c: don't drop final newline > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a6818d5bd0099de3f36406481b1672e430dacba5 --- compat/cuda/ptx2c.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/cuda/ptx2c.sh b/compat/cuda/ptx2c.sh index 5ccabbf56f..0750e7a3b7 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" _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".