Skip to content

Commit

Permalink
CONTRIB: Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tvegas1 committed Nov 29, 2024
1 parent 9106af0 commit c808e5f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions contrib/api_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,23 @@ branch="${1?Specify remote version to use like "upstream/v1.18.x"}"
remote="${branch%%/*}"
version="$(echo "${branch##*/}" | sed -e 's@\(v[0-9]\+\.[0-9]\+\).*@\1@')"

if ! git rev-parse --verify --quiet "$branch" >/dev/null; then
if ! git rev-parse --verify --quiet "$branch" >/dev/null
then
echo "Branch \"$branch\" does not exist"
exit 1
fi

echo "Proceed with clean checkout of $branch (${version})?"
read -r
read -r -p "press <enter>"

set -x

sudo yum -y install doxygen doxygen-latex
if grep -qi "debian\|ubuntu" /etc/os-release 2>/dev/null
then
sudo apt-get -y install doxygen doxygen-latex
else
sudo yum -y install doxygen doxygen-latex
fi

git checkout "$branch"
git clean -xdf
Expand Down

0 comments on commit c808e5f

Please sign in to comment.