Skip to content

NYULibraries/dlfa-239_pretty-printed-versions-of-the-1m-test-input-ead-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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