# Change API script for moving to the One Wire API from # the older iButton API. Requires the sed script file # convert.dat # This script will make a backup of the original file # as name.original. # Where to start changing files DIR_ROOT=. # Which files to change JAVA_FILES=`find $DIR_ROOT -iname "*.java"` if [ -e convert.dat ]; then for i in $JAVA_FILES; do sed -f convert.dat $i > $i.changed echo $i mv $i $i.original mv $i.changed $i done else echo Need convert.dat sed script file to continue. fi