Fixed wrong dirs with original data

This commit is contained in:
MunyDev 2024-08-12 18:38:50 -04:00
parent cc336782c0
commit 44545b8e74
No known key found for this signature in database
GPG Key ID: 7DFBB51356064F62

View File

@ -10,16 +10,16 @@ fi
rm -rvf "${SCRIPT_DIR}"/out rm -rvf "${SCRIPT_DIR}"/out
mkdir "${SCRIPT_DIR}"/out mkdir "${SCRIPT_DIR}"/out
mkdir -p "${SCRIPT_DIR}"/out/PKIMetadata/. mkdir -p "${SCRIPT_DIR}"/out/PKIMetadata/.
cp -rvf "${SCRIPT_DIR}"/original/PKIMetadata/. "${SCRIPT_DIR}"/out/PKIMetadata cp -rvf "${SCRIPT_DIR}"/original/PKIMetadata/2000/. "${SCRIPT_DIR}"/out/PKIMetadata
rm -rvf "${SCRIPT_DIR}"/out/PKIMetadata/_metadata # verified contents not necessary rm -rvf "${SCRIPT_DIR}"/out/PKIMetadata/_metadata # verified contents not necessary
rm -rvf "${SCRIPT_DIR}out/PKIMetadata/"*.fingerprint rm -rvf "${SCRIPT_DIR}out/PKIMetadata/"*.fingerprint
python3 ./src/root_store_gen/generate_new_pbs.py "${SCRIPT_DIR}/original/PKIMetadata/crs.pb" "$@" "${SCRIPT_DIR}/out/PKIMetadata/crs.pb" python3 ./src/root_store_gen/generate_new_pbs.py "${SCRIPT_DIR}/original/PKIMetadata/2000/crs.pb" "$@" "${SCRIPT_DIR}/out/PKIMetadata/crs.pb"
# Modify version in manifest # Modify version in manifest
python3 <<EOF # Set version in manifest python3 <<EOF # Set version in manifest
import json import json
from pathlib import Path from pathlib import Path
mjs = '${SCRIPT_DIR}/original/PKIMetadata/manifest.json' mjs = '${SCRIPT_DIR}/original/PKIMetadata/2000/manifest.json'
mjs = Path(mjs) mjs = Path(mjs)
newfile = Path('${SCRIPT_DIR}/out/PKIMetadata/manifest.json') newfile = Path('${SCRIPT_DIR}/out/PKIMetadata/manifest.json')
dat = Path.read_text(mjs) dat = Path.read_text(mjs)