Exclude some paths when installing XML schemas
@@ -3,7 +3,7 @@ install_jar(config-model-jar-with-dependencies.jar)
vespa_install_script(src/main/perl/vespa-deploy bin)
-install(DIRECTORY src/main/resources/schema DESTINATION share/vespa PATTERN ".gitignore" EXCLUDE)
-install(DIRECTORY src/main/resources/schema DESTINATION share/vespa/schema/version/8.x PATTERN ".gitignore" EXCLUDE)
+install(DIRECTORY src/main/resources/schema DESTINATION share/vespa PATTERN ".gitignore" EXCLUDE PATTERN "version" EXCLUDE)
+install(DIRECTORY src/main/resources/schema DESTINATION share/vespa/schema/version/8.x PATTERN ".gitignore" EXCLUDE PATTERHN "version" EXCLUDE)
# TODO: Remove when Vespa > 8 and no apps are left on 7 in hosted Vespa
install(DIRECTORY src/main/resources/schema/version/7.x/ DESTINATION share/vespa/schema/version/7.x/schema PATTERN ".gitignore" EXCLUDE)
