From 2e476ab60877fa26fa0dbe141e98483022f20867 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 16 Aug 2011 13:53:56 +0200 Subject: [PATCH] Don't rely on trang anymore for Git checkout builds Configuration in etc will only be properly validated if trang is available. From now on only relax NC files are bundled with the source dist. --- etc/Makefile.am | 6 +- xml/schema/.gitignore | 2 + xml/schema/Makefile.am | 69 +++-------- xml/schema/filter_auth_simple.rng | 34 ----- xml/schema/filter_auth_simple.xsd | 29 ----- xml/schema/filter_backend_test.rng | 19 --- xml/schema/filter_backend_test.xsd | 17 --- xml/schema/filter_bounce.rng | 19 --- xml/schema/filter_bounce.xsd | 17 --- xml/schema/filter_cgi.rng | 19 --- xml/schema/filter_cgi.xsd | 26 ---- xml/schema/filter_cql_rpn.rng | 24 ---- xml/schema/filter_cql_rpn.xsd | 22 ---- xml/schema/filter_frontend_net.rng | 44 ------- xml/schema/filter_frontend_net.xsd | 37 ------ xml/schema/filter_http_file.rng | 30 ----- xml/schema/filter_http_file.xsd | 34 ----- xml/schema/filter_limit.rng | 33 ----- xml/schema/filter_limit.xsd | 28 ----- xml/schema/filter_load_balance.rng | 39 ------ xml/schema/filter_load_balance.xsd | 37 ------ xml/schema/filter_log.rng | 103 ---------------- xml/schema/filter_log.xsd | 61 --------- xml/schema/filter_multi.rng | 37 ------ xml/schema/filter_multi.xsd | 37 ------ xml/schema/filter_query_rewrite.rng | 24 ---- xml/schema/filter_query_rewrite.xsd | 22 ---- xml/schema/filter_record_transform.rng | 21 ---- xml/schema/filter_record_transform.xsd | 31 ----- xml/schema/filter_session_shared.rng | 39 ------ xml/schema/filter_session_shared.xsd | 35 ------ xml/schema/filter_sru_z3950.rng | 27 ---- xml/schema/filter_sru_z3950.xsd | 31 ----- xml/schema/filter_virt_db.rng | 41 ------- xml/schema/filter_virt_db.xsd | 33 ----- xml/schema/filter_z3950_client.rng | 39 ------ xml/schema/filter_z3950_client.xsd | 28 ----- xml/schema/filter_zoom.rng | 211 -------------------------------- xml/schema/filter_zoom.xsd | 131 -------------------- xml/schema/local.xsd | 9 -- xml/schema/metaproxy.rng | 130 -------------------- xml/schema/metaproxy.xsd | 141 --------------------- xml/schema/retrievalinfo.rng | 98 --------------- xml/schema/retrievalinfo.xsd | 64 ---------- 44 files changed, 22 insertions(+), 1956 deletions(-) delete mode 100644 xml/schema/filter_auth_simple.rng delete mode 100644 xml/schema/filter_auth_simple.xsd delete mode 100644 xml/schema/filter_backend_test.rng delete mode 100644 xml/schema/filter_backend_test.xsd delete mode 100644 xml/schema/filter_bounce.rng delete mode 100644 xml/schema/filter_bounce.xsd delete mode 100644 xml/schema/filter_cgi.rng delete mode 100644 xml/schema/filter_cgi.xsd delete mode 100644 xml/schema/filter_cql_rpn.rng delete mode 100644 xml/schema/filter_cql_rpn.xsd delete mode 100644 xml/schema/filter_frontend_net.rng delete mode 100644 xml/schema/filter_frontend_net.xsd delete mode 100644 xml/schema/filter_http_file.rng delete mode 100644 xml/schema/filter_http_file.xsd delete mode 100644 xml/schema/filter_limit.rng delete mode 100644 xml/schema/filter_limit.xsd delete mode 100644 xml/schema/filter_load_balance.rng delete mode 100644 xml/schema/filter_load_balance.xsd delete mode 100644 xml/schema/filter_log.rng delete mode 100644 xml/schema/filter_log.xsd delete mode 100644 xml/schema/filter_multi.rng delete mode 100644 xml/schema/filter_multi.xsd delete mode 100644 xml/schema/filter_query_rewrite.rng delete mode 100644 xml/schema/filter_query_rewrite.xsd delete mode 100644 xml/schema/filter_record_transform.rng delete mode 100644 xml/schema/filter_record_transform.xsd delete mode 100644 xml/schema/filter_session_shared.rng delete mode 100644 xml/schema/filter_session_shared.xsd delete mode 100644 xml/schema/filter_sru_z3950.rng delete mode 100644 xml/schema/filter_sru_z3950.xsd delete mode 100644 xml/schema/filter_virt_db.rng delete mode 100644 xml/schema/filter_virt_db.xsd delete mode 100644 xml/schema/filter_z3950_client.rng delete mode 100644 xml/schema/filter_z3950_client.xsd delete mode 100644 xml/schema/filter_zoom.rng delete mode 100644 xml/schema/filter_zoom.xsd delete mode 100644 xml/schema/local.xsd delete mode 100644 xml/schema/metaproxy.rng delete mode 100644 xml/schema/metaproxy.xsd delete mode 100644 xml/schema/retrievalinfo.rng delete mode 100644 xml/schema/retrievalinfo.xsd diff --git a/etc/Makefile.am b/etc/Makefile.am index d3a76b1..e979a09 100644 --- a/etc/Makefile.am +++ b/etc/Makefile.am @@ -34,8 +34,10 @@ etcdata_DATA = $(xmlconfig) $(config) EXTRA_DIST = $(etcdata_DATA) cgi.sh .PHONY: check_rng -check_rng: - xmllint --noout --xinclude --relaxng $(rng) $(xmlconfig) +check_rng: + if test -f $(rng); then \ + xmllint --noout --xinclude --relaxng $(rng) $(xmlconfig); \ + fi ## Only run XSD checks for a "new" Libxml2 .PHONY: check_xsd diff --git a/xml/schema/.gitignore b/xml/schema/.gitignore index 282522d..bbf8a1f 100644 --- a/xml/schema/.gitignore +++ b/xml/schema/.gitignore @@ -1,2 +1,4 @@ Makefile Makefile.in +*.rng +*.xsd diff --git a/xml/schema/Makefile.am b/xml/schema/Makefile.am index 93cfcdb..ce4e84f 100644 --- a/xml/schema/Makefile.am +++ b/xml/schema/Makefile.am @@ -1,54 +1,8 @@ -TRANG=trang -# TRANG=java -jar /home/adam/proj/trang-20081028/trang.jar +TRANG=/usr/bin/trang xmlschemadatadir = $(pkgdatadir)/xml/schema -xsd = \ -filter_auth_simple.xsd \ -filter_backend_test.xsd \ -filter_bounce.xsd \ -filter_cgi.xsd \ -filter_cql_rpn.xsd \ -filter_frontend_net.xsd \ -filter_http_file.xsd \ -filter_limit.xsd \ -filter_load_balance.xsd \ -filter_log.xsd \ -filter_multi.xsd \ -filter_query_rewrite.xsd \ -filter_record_transform.xsd \ -filter_session_shared.xsd \ -filter_sru_z3950.xsd \ -filter_virt_db.xsd \ -filter_z3950_client.xsd \ -filter_zoom.xsd \ -local.xsd \ -metaproxy.xsd \ -retrievalinfo.xsd - -rng = \ -filter_auth_simple.rng \ -filter_backend_test.rng \ -filter_bounce.rng \ -filter_cgi.rng \ -filter_cql_rpn.rng \ -filter_frontend_net.rng \ -filter_http_file.rng \ -filter_limit.rng \ -filter_load_balance.rng \ -filter_log.rng \ -filter_multi.rng \ -filter_query_rewrite.rng \ -filter_record_transform.rng \ -filter_session_shared.rng \ -filter_sru_z3950.rng \ -filter_virt_db.rng \ -filter_z3950_client.rng \ -filter_zoom.rng \ -metaproxy.rng \ -retrievalinfo.rng - rnc = \ filter_auth_simple.rnc \ filter_backend_test.rnc \ @@ -71,12 +25,21 @@ filter_zoom.rnc \ metaproxy.rnc \ retrievalinfo.rnc -xmlschemadata_DATA = $(xsd) $(rng) $(rnc) +noinst_DATA = metaproxy.rng metaproxy.xsd + +xmlschemadata_DATA = $(rnc) + +EXTRA_DIST = $(rnc) -EXTRA_DIST = $(xmlschemadata_DATA) +clean: + rm -f *.xsd *.rng -$(rng):$(rnc) - $(TRANG) metaproxy.rnc metaproxy.rng +metaproxy.rng:$(rnc) + if test -x $(TRANG); then \ + $(TRANG) metaproxy.rnc metaproxy.rng; \ + fi -$(xsd):$(rnc) - $(TRANG) metaproxy.rnc metaproxy.xsd +metaproxy.xsd:$(rnc) + if test -x $(TRANG); then \ + $(TRANG) metaproxy.rnc metaproxy.xsd; \ + fi diff --git a/xml/schema/filter_auth_simple.rng b/xml/schema/filter_auth_simple.rng deleted file mode 100644 index 1cc92d0..0000000 --- a/xml/schema/filter_auth_simple.rng +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - auth_simple - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_auth_simple.xsd b/xml/schema/filter_auth_simple.xsd deleted file mode 100644 index c2eda0e..0000000 --- a/xml/schema/filter_auth_simple.xsd +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_backend_test.rng b/xml/schema/filter_backend_test.rng deleted file mode 100644 index 0e71c96..0000000 --- a/xml/schema/filter_backend_test.rng +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - backend_test - - - - - - - - - - - - - diff --git a/xml/schema/filter_backend_test.xsd b/xml/schema/filter_backend_test.xsd deleted file mode 100644 index e43bad7..0000000 --- a/xml/schema/filter_backend_test.xsd +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_bounce.rng b/xml/schema/filter_bounce.rng deleted file mode 100644 index b1b92c9..0000000 --- a/xml/schema/filter_bounce.rng +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - bounce - - - - - - - - - - - - - diff --git a/xml/schema/filter_bounce.xsd b/xml/schema/filter_bounce.xsd deleted file mode 100644 index f828a72..0000000 --- a/xml/schema/filter_bounce.xsd +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_cgi.rng b/xml/schema/filter_cgi.rng deleted file mode 100644 index 7a7ab31..0000000 --- a/xml/schema/filter_cgi.rng +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - cgi - - - - - - - - - - - - - diff --git a/xml/schema/filter_cgi.xsd b/xml/schema/filter_cgi.xsd deleted file mode 100644 index a01e4e5..0000000 --- a/xml/schema/filter_cgi.xsd +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_cql_rpn.rng b/xml/schema/filter_cql_rpn.rng deleted file mode 100644 index 992d137..0000000 --- a/xml/schema/filter_cql_rpn.rng +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - cql_rpn - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_cql_rpn.xsd b/xml/schema/filter_cql_rpn.xsd deleted file mode 100644 index 8446a74..0000000 --- a/xml/schema/filter_cql_rpn.xsd +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_frontend_net.rng b/xml/schema/filter_frontend_net.rng deleted file mode 100644 index 0a42a7b..0000000 --- a/xml/schema/filter_frontend_net.rng +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - frontend_net - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_frontend_net.xsd b/xml/schema/filter_frontend_net.xsd deleted file mode 100644 index c141883..0000000 --- a/xml/schema/filter_frontend_net.xsd +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_http_file.rng b/xml/schema/filter_http_file.rng deleted file mode 100644 index 607a83a..0000000 --- a/xml/schema/filter_http_file.rng +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - http_file - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_http_file.xsd b/xml/schema/filter_http_file.xsd deleted file mode 100644 index 33940ff..0000000 --- a/xml/schema/filter_http_file.xsd +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_limit.rng b/xml/schema/filter_limit.rng deleted file mode 100644 index 8932450..0000000 --- a/xml/schema/filter_limit.rng +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - limit - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_limit.xsd b/xml/schema/filter_limit.xsd deleted file mode 100644 index a051687..0000000 --- a/xml/schema/filter_limit.xsd +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_load_balance.rng b/xml/schema/filter_load_balance.rng deleted file mode 100644 index f31cd8a..0000000 --- a/xml/schema/filter_load_balance.rng +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - load_balance - - - - - - - - - - - - - diff --git a/xml/schema/filter_load_balance.xsd b/xml/schema/filter_load_balance.xsd deleted file mode 100644 index 39b9136..0000000 --- a/xml/schema/filter_load_balance.xsd +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_log.rng b/xml/schema/filter_log.rng deleted file mode 100644 index 5b2cbaa..0000000 --- a/xml/schema/filter_log.rng +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - log - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_log.xsd b/xml/schema/filter_log.xsd deleted file mode 100644 index 1682ea4..0000000 --- a/xml/schema/filter_log.xsd +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_multi.rng b/xml/schema/filter_multi.rng deleted file mode 100644 index d0d4b00..0000000 --- a/xml/schema/filter_multi.rng +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - multi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_multi.xsd b/xml/schema/filter_multi.xsd deleted file mode 100644 index 0ad68d9..0000000 --- a/xml/schema/filter_multi.xsd +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_query_rewrite.rng b/xml/schema/filter_query_rewrite.rng deleted file mode 100644 index a64c4de..0000000 --- a/xml/schema/filter_query_rewrite.rng +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - query_rewrite - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_query_rewrite.xsd b/xml/schema/filter_query_rewrite.xsd deleted file mode 100644 index f1d95e6..0000000 --- a/xml/schema/filter_query_rewrite.xsd +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_record_transform.rng b/xml/schema/filter_record_transform.rng deleted file mode 100644 index a31b397..0000000 --- a/xml/schema/filter_record_transform.rng +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - record_transform - - - - - - - - - - - - - - diff --git a/xml/schema/filter_record_transform.xsd b/xml/schema/filter_record_transform.xsd deleted file mode 100644 index 9ac6160..0000000 --- a/xml/schema/filter_record_transform.xsd +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_session_shared.rng b/xml/schema/filter_session_shared.rng deleted file mode 100644 index 8507bad..0000000 --- a/xml/schema/filter_session_shared.rng +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - session_shared - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_session_shared.xsd b/xml/schema/filter_session_shared.xsd deleted file mode 100644 index 5ad9d2f..0000000 --- a/xml/schema/filter_session_shared.xsd +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_sru_z3950.rng b/xml/schema/filter_sru_z3950.rng deleted file mode 100644 index e9b901d..0000000 --- a/xml/schema/filter_sru_z3950.rng +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - sru_z3950 - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_sru_z3950.xsd b/xml/schema/filter_sru_z3950.xsd deleted file mode 100644 index e23460d..0000000 --- a/xml/schema/filter_sru_z3950.xsd +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_virt_db.rng b/xml/schema/filter_virt_db.rng deleted file mode 100644 index f6708ef..0000000 --- a/xml/schema/filter_virt_db.rng +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - virt_db - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_virt_db.xsd b/xml/schema/filter_virt_db.xsd deleted file mode 100644 index d46362c..0000000 --- a/xml/schema/filter_virt_db.xsd +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_z3950_client.rng b/xml/schema/filter_z3950_client.rng deleted file mode 100644 index b7f33db..0000000 --- a/xml/schema/filter_z3950_client.rng +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - z3950_client - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_z3950_client.xsd b/xml/schema/filter_z3950_client.xsd deleted file mode 100644 index 3ccba0f..0000000 --- a/xml/schema/filter_z3950_client.xsd +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_zoom.rng b/xml/schema/filter_zoom.rng deleted file mode 100644 index 0c523ed..0000000 --- a/xml/schema/filter_zoom.rng +++ /dev/null @@ -1,211 +0,0 @@ - - - - - - zoom - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/filter_zoom.xsd b/xml/schema/filter_zoom.xsd deleted file mode 100644 index 0e37316..0000000 --- a/xml/schema/filter_zoom.xsd +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/local.xsd b/xml/schema/local.xsd deleted file mode 100644 index eea7398..0000000 --- a/xml/schema/local.xsd +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/xml/schema/metaproxy.rng b/xml/schema/metaproxy.rng deleted file mode 100644 index 81e8915..0000000 --- a/xml/schema/metaproxy.rng +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1.0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/metaproxy.xsd b/xml/schema/metaproxy.xsd deleted file mode 100644 index cedc1ca..0000000 --- a/xml/schema/metaproxy.xsd +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/retrievalinfo.rng b/xml/schema/retrievalinfo.rng deleted file mode 100644 index 5056537..0000000 --- a/xml/schema/retrievalinfo.rng +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1.0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/schema/retrievalinfo.xsd b/xml/schema/retrievalinfo.xsd deleted file mode 100644 index 56a4632..0000000 --- a/xml/schema/retrievalinfo.xsd +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- 1.7.10.4