Skip to content

Instantly share code, notes, and snippets.

@jcmvbkbc
Created May 10, 2018 22:16
Show Gist options
  • Save jcmvbkbc/574cbe1080e69f1f323493cd0204431d to your computer and use it in GitHub Desktop.
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 )
#! /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