20 lines
348 B
Plaintext
20 lines
348 B
Plaintext
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
if [[ -f ./patch_flag ]];then
|
||
|
|
echo "kata_integration patched!"
|
||
|
|
exit 0
|
||
|
|
fi
|
||
|
|
|
||
|
|
tar -zxvf kata_integration-*.tar.gz
|
||
|
|
cat ./series.conf | while read line
|
||
|
|
do
|
||
|
|
if [[ $line == '' || $line =~ ^\s*# ]]; then
|
||
|
|
continue
|
||
|
|
fi
|
||
|
|
echo "====patch $line======"
|
||
|
|
pwd
|
||
|
|
patch -p1 -F1 -s < ./patches/$line
|
||
|
|
done
|
||
|
|
|
||
|
|
touch ./patch_flag
|