Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 973 Bytes

File metadata and controls

23 lines (17 loc) · 973 Bytes

Pretty-printed versions of the 1M+ test input EAD files

Jira: DLFA-239: Create GitHub repo with pretty-printed versions of the 1M+ test input EAD files

How this repo was created

Environment vars:

SOURCE_DIR = root of local clone of findingaids_eads_v2 set to 8d1b8fb6bd45327e90857c77bff8afa66358f4e7 (per DLFA-201: Specify acceptance test suite for v2 indexer)

TARGET_DIR = root of local clone of this repo

for f in $( find $SOURCE_DIR -type f -name *.xml )
do 
    repository=$( basename $( dirname $f ) )
    filename=$( basename $f )
    targetDirectory="$TARGET_DIR/$repository"
    mkdir -p $targetDirectory
    targetFile=$targetDirectory/$filename
    cat $f | xmllint --format - > $targetFile
done