From a6818d5bd0099de3f36406481b1672e430dacba5 Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Fri, 24 May 2019 19:23:39 +0200 Subject: compat/cuda/ptx2c: don't drop final newline --- compat/cuda/ptx2c.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compat') 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" -- cgit v1.1