upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / freedesktop-docs / trunk / list-sources.sh
blob695a27257d12b8016fc638b30791dd3766f7352c
1 #!/bin/bash
3 . PKGBUILD
5 for i in ${source[@]}; do
6 if echo $i | grep -E '^git\+https://' >/dev/null; then
7 URL=$(echo $i | sed 's|git+||' | cut -f1 -d#)
8 HASH=$(git ls-remote $URL refs/heads/master | awk -- '{print $1}')
9 echo " \"git+$URL#commit=$HASH\""
11 done