Skip to content

Instantly share code, notes, and snippets.

@AdarshGrewal
Forked from Lacentix/qcacld-3.0.sh
Last active July 5, 2022 17:13
Show Gist options
  • Select an option

  • Save AdarshGrewal/97847fa5e6c2941ea868a0666c498f10 to your computer and use it in GitHub Desktop.

Select an option

Save AdarshGrewal/97847fa5e6c2941ea868a0666c498f10 to your computer and use it in GitHub Desktop.
#!/bin/bash
read -p "Please input the tag/branch name: " branch
read -p "What do you want to do (import (i) or update (u)): " option
case $option in
import | i)
git subtree add --prefix=techpack/audio https://source.codeaurora.org/quic/la/platform/vendor/opensource/audio-kernel.git/ $branch
git subtree add --prefix=techpack/camera https://source.codeaurora.org/quic/la/platform/vendor/opensource/camera-kernel.git/ $branch
git subtree add --prefix=techpack/dataipa https://source.codeaurora.org/quic/la/platform/vendor/opensource/dataipa.git/ $branch
git subtree add --prefix=techpack/datarmnet https://source.codeaurora.org/quic/la/platform/vendor/qcom/opensource/datarmnet.git/ $branch
git subtree add --prefix=techpack/datarmnet-ext https://source.codeaurora.org/quic/la/platform/vendor/qcom/opensource/datarmnet-ext.git/ $branch
git subtree add --prefix=techpack/display https://source.codeaurora.org/quic/la/platform/vendor/opensource/display-drivers.git/ $branch
git subtree add --prefix=techpack/video https://source.codeaurora.org/quic/la/platform/vendor/opensource/video-driver.git/ $branch
git subtree add --prefix=drivers/staging/fw-api https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/wlan/fw-api.git/ $branch
git subtree add --prefix=drivers/staging/qca-wifi-host-cmn https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/wlan/qca-wifi-host-cmn.git/ $branch
git subtree add --prefix=drivers/staging/qcacld-3.0 https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/wlan/qcacld-3.0.git/ $branch
echo "Imported successfully."
;;
update | u)
git subtree pull --prefix=techpack/audio https://source.codeaurora.org/quic/la/platform/vendor/opensource/audio-kernel.git/ $branch
git subtree pull --prefix=techpack/camera https://source.codeaurora.org/quic/la/platform/vendor/opensource/camera-kernel.git/ $branch
git subtree pull --prefix=techpack/dataipa https://source.codeaurora.org/quic/la/platform/vendor/opensource/dataipa.git/ $branch
git subtree pull --prefix=techpack/datarmnet https://source.codeaurora.org/quic/la/platform/vendor/qcom/opensource/datarmnet.git/ $branch
git subtree pull --prefix=techpack/datarmnet-ext https://source.codeaurora.org/quic/la/platform/vendor/qcom/opensource/datarmnet-ext.git/ $branch
git subtree pull --prefix=techpack/display https://source.codeaurora.org/quic/la/platform/vendor/opensource/display-drivers.git/ $branch
git subtree pull --prefix=techpack/video https://source.codeaurora.org/quic/la/platform/vendor/opensource/video-driver.git/ $branch
git subtree pull --prefix=drivers/staging/fw-api https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/wlan/fw-api.git/ $branch
git subtree pull --prefix=drivers/staging/qca-wifi-host-cmn https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/wlan/qca-wifi-host-cmn.git/ $branch
git subtree pull --prefix=drivers/staging/qcacld-3.0 https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/wlan/qcacld-3.0.git/ $branch
echo "Updated successfully."
;;
*)
echo "Invalid option."
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment