BobStore/tools/repo-revisions.sh

11 lines
398 B
Bash
Raw Normal View History

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