diff --git a/Makefile b/Makefile index d4150d5..9ad20d1 100644 --- a/Makefile +++ b/Makefile @@ -6,3 +6,6 @@ setup-python: protoc --python_out=gen/python crs.proto cp gen/python/crs_pb2.py src/root_store_gen exit +build-packed-data: + mkdir -p out/PKIMetadata + \ No newline at end of file diff --git a/make_out.sh b/make_out.sh new file mode 100755 index 0000000..5f67a13 --- /dev/null +++ b/make_out.sh @@ -0,0 +1,28 @@ +#!/bin/bash +mkdir -p out/PKIMetadata/2000 +SCRIPT_DIR=$(dirname $0) +if [ $# -lt 1 ] +then + echo "Usage: " + exit 1 +fi +# Copy all directories, and will be modified by future calls +rm -rvf "${SCRIPT_DIR}"/out +mkdir "${SCRIPT_DIR}"/out +mkdir -p "${SCRIPT_DIR}"/out/PKIMetadata/2000/. +cp -rvf "${SCRIPT_DIR}"/original/PKIMetadata/2000/. "${SCRIPT_DIR}"/out/PKIMetadata/2000 +rm -rvf "${SCRIPT_DIR}"out/PKIMetadata/2000/_metadata # verified contents not necessary +python3 ./src/root_store_gen/generate_new_pbs.py "${SCRIPT_DIR}/original/PKIMetadata/2000/crs.pb" "$@" "${SCRIPT_DIR}/out/PKIMetadata/2000/crs.pb" +# Modify version in manifest + +python3 <