File stripchars of Package supercollider-quarks

#!/bin/bash
#
# Strip weird characters from .sc files, print names of files that were fixed

SCFILE=${1}
if [ "$SCFILE" != "" ] ; then
    tr -cd '\11\12\15\40-\176' < "${1}" > ./tmp.txt
    if ! diff -q "${1}" ./tmp.txt &>/dev/null ; then
	echo "${1}"
	mv ./tmp.txt "${1}"
    fi
    rm -f ./tmp.txt
fi

openSUSE Build Service is sponsored by