Changeset 37125


Ignore:
Timestamp:
2023-01-10T23:57:04+13:00 (3 weeks ago)
Author:
davidb
Message:

Some restructuring of where the files are; other changes in response to testing

Location:
gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes-and-performers/prepare
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes-and-performers/prepare/01-ARCHIVE-TO-ITEM.sh

    r37121 r37125  
    1111
    1212#for full_archive_dir in Archive/HMS_*[0-9] Archives/BMS_[0-9]_[0-9]_*[0-9] ; do
    13 for full_archive_dir in Archive/* ; do   
     13#for full_archive_dir in Archive/* ; do
     14for full_archive_dir in InterMusE_Images/* ; do
     15   
    1416    echo "Processing $full_archive_dir"
    1517    archive_dir=${full_archive_dir##*/}
    1618    vol=${archive_dir#*_}
    1719   
    18     full_item_dir=Items/${archive_dir}
     20    full_item_dir=GS_Items/${archive_dir}
    1921    item_dir=${archive_dir}
    2022   
  • gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes-and-performers/prepare/02-COPY-TO-IMPORT.sh

    r37121 r37125  
    11#!/bin/bash
    22
    3 echo "Copying Items/HMS_* directories to ../import"
     3echo 'Copying GS_Items/*_*[0-9] directories to ../import'
    44
    55#for full_d in Items/HMS_* ; do
    6 for full_d in Items/*_*[0-9] ; do
     6for full_d in GS_Items/*_*[0-9] ; do
    77    d=${full_d##*/}
    88    if [ -d ../import/$d ] ; then
     
    2121
    2222    echo "  Hardlink file recursive copying $d"
    23     rsync -av --link-dest="$PWD/$full_d" $full_d/ ../import
     23    rsync -av --link-dest="$PWD/$full_d" $full_d/ ../import/$d
    2424
    2525
Note: See TracChangeset for help on using the changeset viewer.