Fix MCU script transformation logic.

The old script behaved incorrectly as it replaced all '*' occurrences
with the list of files in the given directory.

JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
This commit is contained in:
Peter Gal 2015-06-17 13:55:30 +02:00
parent 7508b803cf
commit 5dc44b1362

View File

@ -15,9 +15,6 @@
# limitations under the License.
echo "#define JERRY_MCU_SCRIPT \\" > $2
cat $1 | while read line
do
line=$(echo $line | sed 's/"/\\"/g')
echo "\"$line\n\" \\" >> $2
done
# escape all " characters, wrap each line in double quotes and end the line with '\'
sed 's/"/\\"/g' $1 | sed 's/^.*$/"\0" \\/g' >> $2
echo >> $2