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