From 594bcf3c9db4977171a9ac6981438c240f2c3793 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Fri, 10 Jul 2015 00:40:18 -0700 Subject: [PATCH] Add an 'is versioned' tag to docs when releasing --- build/mark-new-version.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/mark-new-version.sh b/build/mark-new-version.sh index 9cb45ca5bfc..32d57f55648 100755 --- a/build/mark-new-version.sh +++ b/build/mark-new-version.sh @@ -102,6 +102,10 @@ for doc in "${mdfiles[@]}"; do -e '//,//d' \ -e "s|(releases.k8s.io)/[^/]+|\1/${NEW_VERSION}|" \ "${doc}" + is_versioned_tag='' + if ! grep -q "${is_versioned_tag}" "${doc}"; then + echo "${is_versioned_tag}" >> "${doc}" + fi done # Update API descriptions to match this version.