1
0
mirror of synced 2026-08-04 06:26:55 +00:00

devops: roll_driver script (#1605)

This commit is contained in:
Yury Semikhatsky
2024-06-25 08:34:20 -07:00
committed by GitHub
parent 626050d988
commit a08ab2dcae
14 changed files with 104 additions and 91 deletions
+27
View File
@@ -0,0 +1,27 @@
#!/bin/bash
set -e
set +x
trap "cd $(pwd -P)" EXIT
cd "$(dirname $0)"
if [ "$#" -ne 1 ]; then
echo ""
echo "Usage: scripts/roll_driver.sh [new version]"
echo ""
exit 1
fi
NEW_VERSION=$1
CURRENT_VERSION=$(head -1 ./DRIVER_VERSION)
if [[ "$CURRENT_VERSION" == "$NEW_VERSION" ]]; then
echo "Current version is up to date. Skipping driver download.";
else
echo $NEW_VERSION > ./DRIVER_VERSION
./download_driver.sh
fi;
./generate_api.sh
./update_readme.sh