acrn-hypervisor/hypervisor/scripts/genld.sh
lirui34 70312bfb7e dm: Add licenses to the scripts.
Add licenses to the scripts:
```
devicemodel/samples/apl-mrb/launch_uos.sh
devicemodel/samples/apl-up2/launch_uos.sh
devicemodel/samples/nuc/launch_hard_rt_vm.sh
devicemodel/samples/nuc/launch_uos.sh
devicemodel/samples/nuc/launch_vxworks.sh
devicemodel/samples/nuc/launch_win.sh
devicemodel/samples/nuc/launch_zephyr.sh
hypervisor/scripts/genld.sh
```

Tracked-On: #4061
Signed-off-by: lirui34 <ruix.li@intel.com>
2019-11-11 15:35:19 +08:00

16 lines
295 B
Bash
Executable File

#!/bin/bash
# Copyright (C) 2019 Intel Corporation.
# SPDX-License-Identifier: BSD-3-Clause
in=$1
out=$2
config=$3
cp $in $out
grep -v "^#" ${config} | while read line; do
IFS='=' read -ra arr <<<"$line"
field=${arr[0]}
value=${arr[1]}
sed -i "s/\b$field\b/$value/g" $out
done