Browse Source

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

tags/n4.2
Timo Rothenpieler 6 years ago
parent
commit
a6818d5bd0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      compat/cuda/ptx2c.sh

+ 1
- 1
compat/cuda/ptx2c.sh View File

@@ -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"


Loading…
Cancel
Save