New script: Update repo xml data with git repo/submodule data
This commit is contained in:
parent
ca0ed2844e
commit
12a9a1cf29
10
tools/repo-revisions.sh
Executable file
10
tools/repo-revisions.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user