Commit a6818d5b authored by Timo Rothenpieler's avatar Timo Rothenpieler

compat/cuda/ptx2c: don't drop final newline

parent 4cfc34d9
...@@ -27,7 +27,7 @@ IN="$2" ...@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment