Files
daishengdong 3e631cd96a update qcloud sdk
1. iot-hub sdk update to 3.2.0
2. iot-explorer update to 3.1.1
2020-05-07 11:11:04 +08:00

13 lines
464 B
Bash

#!/bin/bash
if [ $1 == "linux" ]; then
find $2 -type f -name "*.h" -print -o -name "*.c" -print | xargs -i sed -i '1 s/^\xef\xbb\xbf//' {}
echo "Convert source files to Unix format!!!"
elif [ $1 == "windows" ]; then
find $2 -type f -name "*.h" -print -o -name "*.c" -print | xargs -i sed -i '1 s/^/\xef\xbb\xbf&/' {}
echo "Convert source files to Windows format!!!"
else
echo "Invaild argument!"
echo "Please choose windows or linux !!!"
fi