mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
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:
parent
7508b803cf
commit
5dc44b1362
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user