You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ distribution_svn_branch ="branches/master" ];then
61
+
distribution_svn_branch=trunk
62
+
fi
59
63
60
64
# Directories to get via SVN. We use this because you can't use git to clone just a portion of a repository
61
-
svn co https://github.com/docker/docker-ce/"$ENGINE_SVN_BRANCH"/components/cli/docs/extend ./engine/extend || (echo "Failed engine/extend download"&&exit 1)
62
-
svn co https://github.com/docker/docker-ce/"$ENGINE_SVN_BRANCH"/components/engine/docs/api ./engine/api || (echo "Failed engine/api download"&&exit 1) # This will only get you the old API MD files 1.18 through 1.24
63
-
svn co https://github.com/docker/distribution/"$DISTRIBUTION_SVN_BRANCH"/docs/spec ./registry/spec || (echo "Failed registry/spec download"&&exit 1)
64
-
svn co https://github.com/mirantis/compliance/trunk/docs/compliance ./compliance || (echo "Failed docker/compliance download"&&exit 1)
65
+
svn co "https://github.com/docker/docker-ce/${engine_svn_branch}/components/cli/docs/extend" ./engine/extend || (echo "Failed engine/extend download"&&exit 1)
66
+
svn co "https://github.com/docker/docker-ce/${engine_svn_branch}/components/engine/docs/api" ./engine/api || (echo "Failed engine/api download"&&exit 1) # This will only get you the old API MD files 1.18 through 1.24
67
+
svn co "https://github.com/docker/distribution/${distribution_svn_branch}/docs/spec" ./registry/spec || (echo "Failed registry/spec download"&&exit 1)
68
+
svn co "https://github.com/mirantis/compliance/trunk/docs/compliance" ./compliance || (echo "Failed docker/compliance download"&&exit 1)
69
+
70
+
# Cleanup svn directories
71
+
find . -name .svn -exec rm -rf '{}'\;
65
72
66
73
# Get the Engine APIs that are in Swagger
67
74
# Be careful with the locations on Github for these
0 commit comments