Merge pull request #11865 from thockin/versionize-sed-g

Apply version subst multiple times per line
This commit is contained in:
Marek Grabowski 2015-07-27 17:25:50 +02:00
commit 9cccdc98e8

View File

@ -54,7 +54,7 @@ done
for doc in "${mdfiles[@]}"; do
$SED -ri \
-e '/<!-- BEGIN STRIP_FOR_RELEASE -->/,/<!-- END STRIP_FOR_RELEASE -->/d' \
-e "s|(releases.k8s.io)/[^/]+|\1/${NEW_VERSION}|" \
-e "s|(releases.k8s.io)/[^/]+|\1/${NEW_VERSION}|g" \
"${doc}"
# Replace /HEAD in html preview links with /NEW_VERSION.