2018-07-25 07:57:40 +08:00
|
|
|
#!/bin/bash
|
2019-11-09 07:25:09 +08:00
|
|
|
# Copyright (C) 2019 Intel Corporation.
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2018-07-25 07:57:40 +08:00
|
|
|
|
|
|
|
q="--quiet"
|
|
|
|
|
|
|
|
# get the latest acrn-kernel sources for the kernel-doc API processing
|
|
|
|
|
|
|
|
if [ ! -d "../../acrn-kernel" ]; then
|
|
|
|
echo Repo for acrn-kernel is missing.
|
|
|
|
exit -1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Assumes origin is the upstream repo
|
|
|
|
|
|
|
|
cd ../../acrn-kernel
|
|
|
|
git checkout $q master
|
|
|
|
git fetch $q origin
|
|
|
|
git reset $q --hard origin/master
|