Last change
on this file since 38695 was 38695, checked in by davidb, 4 months ago |
Embedding the unpatch and patch scripts into the main 05 script so done automatically
|
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | echo ""
|
---|
4 | echo "Checking directory structure in:"
|
---|
5 | echo " Digitised-materials-ready-for-digital-archive/YorkïŒHMS\ BMS\ Borthwick\ IIIF/"
|
---|
6 | echo ""
|
---|
7 |
|
---|
8 | cd Digitised-materials-ready-for-digital-archive/YorkïŒHMS\ BMS\ Borthwick\ IIIF/
|
---|
9 |
|
---|
10 | if [ -d HMS ] || [ -d BMS ] ; then
|
---|
11 | echo "****"
|
---|
12 | echo "**** Applying *Un*patch"
|
---|
13 | echo "****"
|
---|
14 | echo ""
|
---|
15 |
|
---|
16 | if [ ! -d InterMusE_Images ] ; then
|
---|
17 | echo "Creating directory: InterMusE_Images (to reverse move HMS and BMS digitized content)"
|
---|
18 | mkdir InterMusE_Images
|
---|
19 | fi
|
---|
20 |
|
---|
21 | if [ -d BMS ] ; then
|
---|
22 | echo "Creating directory: InterMusE_Images/BMS_PDFs (in which to reverse move BMS content)"
|
---|
23 | mkdir InterMusE_Images/BMS_PDFs
|
---|
24 | echo "Moving BMS/* back to InterMusE_Images/BMS_PDFs/."
|
---|
25 | /bin/mv BMS/* InterMusE_Images/BMS_PDFs/.
|
---|
26 | fi
|
---|
27 |
|
---|
28 | if [ -d HMS ] ; then
|
---|
29 | echo "Moving HMS/HMS_* back to InterMusE_Images/."
|
---|
30 | /bin/mv HMS/HMS_* InterMusE_Images/.
|
---|
31 | fi
|
---|
32 |
|
---|
33 | echo ""
|
---|
34 | echo "Removing empty directories: BMS and HMS"
|
---|
35 | if [ -d BMS ] ; then /bin/rmdir BMS ; fi
|
---|
36 | if [ -d HSM ] ; then /bin/rmdir HMS ; fi
|
---|
37 | else
|
---|
38 | echo "**** File restructure patch has already been applied. Nothing to do!"
|
---|
39 | fi
|
---|
40 | cd ../../
|
---|
Note:
See
TracBrowser
for help on using the repository browser.