aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/Makefile7
-rw-r--r--scripts/generate-testrepo.py7
2 files changed, 11 insertions, 3 deletions
diff --git a/scripts/Makefile b/scripts/Makefile
index 1003c0b7..ab658040 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -1,6 +1,6 @@
# $Id$
-all: left-right-protocol-samples/.stamp left-right-schema.rng up-down-medium-schema.rng up-down-schema.rng
+all: left-right-protocol-samples/.stamp left-right-schema.rng up-down-medium-schema.rng up-down-schema.rng resource-cert-samples/.stamp
left-right-protocol-samples/.stamp: left-right-protocol-samples.xsl ../docs/left-right-xml
xsltproc left-right-protocol-samples.xsl ../docs/left-right-xml
@@ -24,3 +24,8 @@ dont-run-trang:
relaxng: left-right-protocol-samples/.stamp
xmllint --noout --relaxng left-right-schema.rng left-right-protocol-samples/*.xml
xmllint --noout --relaxng up-down-schema.rng up-down-protocol-samples/*.xml
+
+resource-cert-samples/.stamp: generate-testrepo.py Makefile
+ python generate-testrepo.py
+ cd resource-cert-samples && make
+ touch $@
diff --git a/scripts/generate-testrepo.py b/scripts/generate-testrepo.py
index adc9100a..e3e98e39 100644
--- a/scripts/generate-testrepo.py
+++ b/scripts/generate-testrepo.py
@@ -1,8 +1,8 @@
# $Id$
-import rpki.resource_set
+import rpki.resource_set, os
-subdir = "testrepo"
+subdir = "resource-cert-samples"
openssl = "../../openssl/openssl-0.9.8e/apps/openssl"
keybits = 2048
@@ -20,6 +20,9 @@ def main():
db.add("LIR2", children=["ISP3", "ISP4"])
db.add("RIR", children=["LIR1", "LIR2"])
+ if not os.path.isdir(subdir):
+ os.mkdir(subdir)
+
for i in db:
write_maybe("%s/%s.cnf" % (subdir, i.name), i.cfg_string())
write_maybe("%s/Makefile" % subdir,