Last active
October 1, 2024 21:32
-
-
Save plowsof/81844092651435f63f9474efeb7c281c to your computer and use it in GitHub Desktop.
monero gui: get commit hashes of qt gits
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
QT_VERSION=$1 | |
# List of Qt repositories | |
REPOS=( | |
"qtbase" | |
"qtdeclarative" | |
"qtgraphicaleffects" | |
"qtimageformats" | |
"qtmultimedia" | |
"qtquickcontrols" | |
"qtquickcontrols2" | |
"qtsvg" | |
"qttools" | |
"qttranslations" | |
"qtx11extras" | |
"qtxmlpatterns" | |
) | |
echo "Fetching information for Qt version $QT_VERSION" | |
echo "------------------------------------------------" | |
REPO="qt5" | |
COMMIT_HASH=$(git ls-remote git://code.qt.io/qt/$REPO.git refs/tags/$QT_VERSION | cut -f1) | |
echo "\"https://broken.com/hello.git,git://code.qt.io/qt/$REPO.git\" \"${QT_VERSION}\" \"$COMMIT_HASH\" \"\" \"\"" | |
for REPO in "${REPOS[@]}"; do | |
COMMIT_HASH=$(git ls-remote git://code.qt.io/qt/$REPO.git refs/tags/$QT_VERSION | cut -f1) | |
echo "\"https://broken.com/hello.git,git://code.qt.io/qt/$REPO.git\" \"${QT_VERSION}\" \"$COMMIT_HASH\" \"\" \"true\"" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment