Skip to content
Permalink
Browse files

compat/cuda/ptx2c.sh: Remove bashisms

Don't assume /bin/sh is bash.
  • Loading branch information
philipl committed May 15, 2017
1 parent 7aa90b4 commit dfaa3eadb6d43ee69157c556b6fe2cf51df9ee2b
Showing with 2 additions and 2 deletions.
  1. +2 −2 compat/cuda/ptx2c.sh
@@ -23,12 +23,12 @@ set -e
OUT="$1"
IN="$2"
NAME="$(basename "$IN")"
NAME="${NAME/.ptx/}"
NAME=`echo $NAME | sed 's/\.ptx//'`

echo -n "const char ${NAME}_ptx[] = \\" > "$OUT"
while read LINE
do
echo -ne "\n\t\"$LINE\\\n\"" >> "$OUT"
/bin/echo -ne "\n\t\"$LINE\\\n\"" >> "$OUT"
done < "$IN"
echo ";" >> "$OUT"

0 comments on commit dfaa3ea

Please sign in to comment.