Created
May 10, 2018 22:16
-
-
Save jcmvbkbc/574cbe1080e69f1f323493cd0204431d to your computer and use it in GitHub Desktop.
Script for repo project version fixing ( repo forall -c fix-repo-version `pwd`/.repo/manifests/default.xml )
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash -ex | |
if [ $# -gt 0 ] ; then name="$1" | |
else name=".repo/manifests/default.xml" ; fi | |
sed -i "$name" -e "\\,name=\"$REPO_PROJECT\",s, *revision=\"[^\"]*\",,g" | |
sed -i "$name" -e "\\,name=\"$REPO_PROJECT\",s,/>,revision=\"$REPO_LREV\" />,g" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment