Skip to content

Instantly share code, notes, and snippets.

@plowsof
Last active October 1, 2024 21:32
Show Gist options
  • Save plowsof/81844092651435f63f9474efeb7c281c to your computer and use it in GitHub Desktop.
Save plowsof/81844092651435f63f9474efeb7c281c to your computer and use it in GitHub Desktop.
monero gui: get commit hashes of qt gits
#!/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