New script: Update repo xml data with git repo/submodule data

This commit is contained in:
Daniel Martí 2014-03-17 13:41:03 +01:00
parent ca0ed2844e
commit 12a9a1cf29

10
tools/repo-revisions.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash -ex
# Update README repo manifest revisions from git
LAST_STABLE_TAG=$(git describe --abbrev=0 --tags --match='*[0-9]')
sed -i 's@\(.*name="fdroidclient\.git".*revision="\)[^"]*\(".*\)@\1'$LAST_STABLE_TAG'\2@' README.md
git ls-tree $LAST_STABLE_TAG extern/ | while read _ _ revision path; do
sed -i 's@\(.*fdroidclient/'$path'".*revision="\)[^"]*\(".*\)@\1'$revision'\2@' README.md
done